diff --git a/mypy.ini b/mypy.ini index 795fc2b..656d7bb 100644 --- a/mypy.ini +++ b/mypy.ini @@ -1,15 +1,18 @@ [mypy] namespace_packages = True warn_unused_ignores = True # 3rd party libraries without stubs (yet) +[mypy-django.*] # false positive, only used my hypotesis' extras +ignore_missing_imports = True + [mypy-pkg_resources.*] ignore_missing_imports = True [mypy-pyblake2.*] ignore_missing_imports = True [mypy-pytest.*] ignore_missing_imports = True diff --git a/tox.ini b/tox.ini index 39200ed..a33e8ce 100644 --- a/tox.ini +++ b/tox.ini @@ -1,25 +1,24 @@ [tox] envlist=flake8,py3,mypy [testenv:py3] deps = .[testing] pytest-cov commands = pytest --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