Skip to content

Commit 5859602

Browse files
committed
Move MyPy config into pyproject.toml
1 parent b095b6f commit 5859602

File tree

3 files changed

+17
-23
lines changed

3 files changed

+17
-23
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ jobs:
267267
--timeout=20 \
268268
--durations=10 \
269269
--cov zigpy_znp \
270+
--cov-config pyproject.toml \
270271
-o console_output_style=count \
271272
-p no:sugar \
272273
tests

pyproject.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,22 @@ max-line-length = 88
3737
# D202 No blank lines allowed after function docstring
3838
ignore = "W503,E203,D202"
3939

40+
[tool.mypy]
41+
check_untyped_defs = true
42+
show_error_codes = true
43+
show_error_context = true
44+
disable_error_code = [
45+
"attr-defined",
46+
"assignment",
47+
"arg-type",
48+
"union-attr",
49+
"var-annotated",
50+
"name-defined",
51+
]
52+
53+
[tool.coverage.run]
54+
source = "zigpy_znp"
55+
4056
[tool.tox]
4157
legacy_tox_ini = """
4258
[tox]

setup.cfg

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -36,26 +36,3 @@ testing =
3636
pytest-cov
3737
coveralls
3838
asynctest; python_version < "3.8.0"
39-
40-
[coverage:run]
41-
source = zigpy_znp
42-
43-
[flake8]
44-
max-line-length = 88
45-
46-
[mypy]
47-
ignore_missing_imports = True
48-
install_types = True
49-
non_interactive = True
50-
check_untyped_defs = True
51-
show_error_codes = True
52-
show_error_context = True
53-
disable_error_code =
54-
attr-defined,
55-
arg-type,
56-
type-var,
57-
var-annotated,
58-
assignment,
59-
call-overload,
60-
name-defined,
61-
union-attr

0 commit comments

Comments
 (0)