-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.cfg
88 lines (61 loc) · 1.61 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
[tool:pytest]
# See: https://docs.pytest.org/en/7.1.x/reference/customize.html
testpaths =
tests
[coverage:run]
# See: https://coverage.readthedocs.io/en/7.2.2/config.html#run
command_line = -m pytest
source = ntclient
[coverage:report]
fail_under = 90.00
precision = 2
show_missing = True
skip_empty = True
skip_covered = True
omit =
# Unlike the server & db, the CLI doesn't call the sql module.
# It directly imports the `build_ntsqlite()` function.
ntclient/ntsqlite/sql/__main__.py,
exclude_lines =
pragma: no cover
[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 = ntclient
# See: https://copdips.com/2020/04/making-isort-compatible-with-black.html
multi_line_output = 3
include_trailing_comma = True
[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
;strict_optional = True
no_implicit_optional = 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
# Our "sql" package, in ntclient/ntsqlite
[mypy-sql]
ignore_missing_imports = True
# 3rd party packages missing types
[mypy-argcomplete,fuzzywuzzy]
ignore_missing_imports = True