diff --git a/mypy.ini b/mypy.ini index 4dad0c6..1688682 100644 --- a/mypy.ini +++ b/mypy.ini @@ -1,39 +1,42 @@ [mypy] namespace_packages = True warn_unused_ignores = True # 3rd party libraries without stubs (yet) [mypy-aiohttp_utils.*] ignore_missing_imports = True [mypy-arrow.*] ignore_missing_imports = True [mypy-celery.*] ignore_missing_imports = True [mypy-decorator.*] ignore_missing_imports = True [mypy-deprecated.*] ignore_missing_imports = True +[mypy-django.*] # false positive, only used my hypotesis' extras +ignore_missing_imports = True + [mypy-msgpack.*] ignore_missing_imports = True [mypy-pkg_resources.*] ignore_missing_imports = True [mypy-psycopg2.*] ignore_missing_imports = True [mypy-pytest.*] ignore_missing_imports = True [mypy-requests_mock.*] ignore_missing_imports = True [mypy-systemd.*] ignore_missing_imports = True diff --git a/tox.ini b/tox.ini index 6909f8b..82304e9 100644 --- a/tox.ini +++ b/tox.ini @@ -1,53 +1,52 @@ [tox] envlist=flake8,py3-{core,db,server},mypy [testenv:py3-core] deps = -rrequirements-test.txt . commands = pytest --doctest-modules swh/core/tests {posargs} [testenv:py3-db] deps = -rrequirements-test.txt .[db] pifpaf commands = pifpaf run postgresql -- \ pytest swh/core/db/tests {posargs} [testenv:py3-server] deps = -rrequirements-test.txt .[http] commands = pytest swh/core/api/tests {posargs} [testenv:py3] deps = .[testing] pytest-cov pifpaf commands = pifpaf run postgresql -- \ pytest --doctest-modules \ --hypothesis-profile=slow \ --cov=swh --cov-branch \ {posargs} [testenv:flake8] skip_install = true deps = flake8 commands = {envpython} -m flake8 [testenv:mypy] skip_install = true deps = .[testing] mypy - django-stubs commands = mypy swh