-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
82 lines (75 loc) · 1.4 KB
/
pyproject.toml
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
[tool.black]
line-length = 88
exclude = '''
(
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.nox
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
)
'''
[tool.isort]
line_length = 88
known_first_party = "access_guard/"
multi_line_output = 3
combine_as_imports = true
include_trailing_comma = true
force_grid_wrap = 0
[tool.pytest.ini_options]
addopts = "--cov=access_guard --cov-report=term-missing --no-cov-on-fail -rxXs -v"
testpaths = [
"access_guard/tests",
]
[tool.coverage.run]
branch = true
omit = [
"*/venv/*",
"*/__main__.py",
]
[tool.coverage.report]
skip_covered = true
show_missing = true
exclude_lines = [
"pragma: no cover",
# ignore non-implementations
'^\s*\.\.\.',
"if TYPE_CHECKING:",
"raise NotImplementedError",
'^@skip\(',
]
[tool.mypy]
python_version = "3.10"
pretty = true
files = "access_guard"
show_error_codes = true
no_implicit_reexport = true
no_implicit_optional = true
strict_equality = true
strict_optional = true
check_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
ignore_missing_imports = false
warn_unused_configs = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
warn_unreachable = true
[[tool.mypy.overrides]]
module = "*.tests.*"
ignore_errors = true
[[tool.mypy.overrides]]
module = [
"factory.*",
"uvicorn.*"
]
ignore_missing_imports = true