mypy: Move configuration to 'setup.cfg'

Less top-level files = winning [1].

[1] https://mypy.readthedocs.io/en/stable/config_file.html

Signed-off-by: Stephen Finucane <stephen@that.guru>
This commit is contained in:
Stephen Finucane
2017-10-02 19:23:59 +01:00
parent c57cd9cb06
commit 017f124be5
2 changed files with 8 additions and 7 deletions

View File

@@ -1,7 +0,0 @@
[mypy]
python_version = 2.7
ignore_missing_imports = True
follow_imports = skip
incremental = True
check_untyped_defs = True
warn_unused_ignores = True

View File

@@ -28,5 +28,13 @@ max-line-length = 95
ignore = E116,E241,E251
exclude = .git,.tox,.venv,tests/*,build/*,sphinx/search/*,sphinx/pycode/pgen2/*,doc/ext/example*.py
[mypy]
python_version = 2.7
ignore_missing_imports = True
follow_imports = skip
incremental = True
check_untyped_defs = True
warn_unused_ignores = True
[build_sphinx]
warning-is-error = 1