Skip to content

Commit 6f187fb

Browse files
committed
move mypy config to pyproject.toml
1 parent 4cd3164 commit 6f187fb

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
lines changed

mypy.ini

Lines changed: 0 additions & 25 deletions
This file was deleted.

pyproject.toml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,31 @@ combine_as_imports = true
1919
profile = "black"
2020
skip_gitignore = true
2121

22+
[tool.mypy]
23+
python_version = "3.8"
24+
25+
# Be flexible about dependencies that don't have stubs yet (like pytest)
26+
ignore_missing_imports = true
27+
28+
# Be strict about use of Mypy
29+
warn_unused_ignores = true
30+
warn_unused_configs = true
31+
warn_redundant_casts = true
32+
warn_return_any = true
33+
34+
# Avoid subtle backsliding
35+
#disallow_any_decorated = true
36+
#disallow_incomplete_defs = true
37+
#disallow_subclassing_any = true
38+
39+
# Enable gradually / for new modules
40+
check_untyped_defs = false
41+
disallow_untyped_calls = false
42+
disallow_untyped_defs = false
43+
44+
# DO NOT use `ignore_errors`; it doesn't apply
45+
# downstream and users have to deal with them.
46+
2247
[tool.pytest.ini_options]
2348
addopts = ["--strict-markers", "--strict-config"]
2449
faulthandler_timeout = 60

0 commit comments

Comments
 (0)