-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
66 lines (46 loc) · 1.1 KB
/
setup.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
[coverage:run]
source = ntserv
[coverage:report]
fail_under = 53
omit =
ntserv/__main__.py
show_missing = True
skip_empty = True
skip_covered = True
[pycodestyle]
max-line-length = 88
[flake8]
per-file-ignores =
# Allow unused imports in __init__.py files
__init__.py:F401
max-line-length = 88
ignore =
# line break before binary operator
W503,
[isort]
line_length = 88
known_first_party = ntserv
# See: https://copdips.com/2020/04/making-isort-compatible-with-black.html
multi_line_output = 3
include_trailing_comma = True
profile = black
[mypy]
show_error_codes = True
;show_error_context = True
;pretty = True
disallow_incomplete_defs = True
disallow_untyped_defs = True
disallow_untyped_calls = True
disallow_untyped_decorators = True
warn_return_any = True
warn_redundant_casts = True
warn_unreachable = True
warn_unused_ignores = True
warn_unused_configs = True
warn_incomplete_stub = True
# Our tests, they don't return a value typically
[mypy-tests.*]
disallow_untyped_defs = False
# Modules lacking type stubs
[mypy-sanic_ext.*,ntserv.__sha__]
ignore_missing_imports = True