Skip to content

Commit

Permalink
build(typing): add type hinting linting using MyPy
Browse files Browse the repository at this point in the history
  • Loading branch information
noirbizarre committed Apr 22, 2023
1 parent c19c334 commit f84703f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,7 @@ fixture =
[entry_points]
pytest11 =
requests_mock = requests_mock.contrib._pytest_plugin

[mypy]
[mypy-fixtures]
ignore_missing_imports = True
6 changes: 6 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ envlist =
pypy
pypy3
pep8
typing

[testenv]
setenv =
Expand Down Expand Up @@ -92,3 +93,8 @@ deps =
six
-egit+https://github.com/kennethreitz/requests.git#egg=requests
-r{toxinidir}/test-requirements.txt

[testenv:typing]
commands = mypy requests_mock
deps =
-r{toxinidir}/typing-requirements.txt
3 changes: 3 additions & 0 deletions typing-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
mypy
types-requests
types-six

0 comments on commit f84703f

Please sign in to comment.