Skip to content

Commit 254982b

Browse files
Update mypy config inline with other repos. (#231)
1 parent 9fe55ff commit 254982b

File tree

3 files changed

+22
-14
lines changed

3 files changed

+22
-14
lines changed

.mypy.ini

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[mypy]
2+
files = async_timeout, tests
3+
check_untyped_defs = True
4+
follow_imports_for_stubs = True
5+
disallow_any_decorated = True
6+
disallow_any_generics = True
7+
disallow_incomplete_defs = True
8+
disallow_subclassing_any = True
9+
disallow_untyped_calls = True
10+
disallow_untyped_decorators = True
11+
disallow_untyped_defs = True
12+
implicit_reexport = False
13+
no_implicit_optional = True
14+
show_error_codes = True
15+
strict_equality = True
16+
warn_incomplete_stub = True
17+
warn_redundant_casts = True
18+
warn_unreachable = True
19+
warn_unused_ignores = True
20+
disallow_any_unimported = True
21+
warn_return_any = True

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ lint: mypy check black flake8
88

99

1010
mypy:
11-
mypy --strict --show-error-codes async_timeout tests
11+
mypy
1212

1313

1414
black:

setup.cfg

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,3 @@ license_file = LICENSE
1919

2020
[mypy-pytest]
2121
ignore_missing_imports = true
22-
23-
[mypy]
24-
python_version = 3.6
25-
warn_unused_ignores = True
26-
warn_redundant_casts = True
27-
warn_no_return = True
28-
strict_optional = True
29-
show_traceback = True
30-
show_column_numbers = True
31-
no_implicit_optional = True
32-
disallow_incomplete_defs = True
33-
disallow_any_generics = True
34-
ignore_missing_imports = True

0 commit comments

Comments
 (0)