File tree Expand file tree Collapse file tree 3 files changed +17
-23
lines changed Expand file tree Collapse file tree 3 files changed +17
-23
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -37,6 +37,22 @@ max-line-length = 88
3737# D202 No blank lines allowed after function docstring
3838ignore = " 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 ]
4157legacy_tox_ini = """
4258[tox]
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments