-
Notifications
You must be signed in to change notification settings - Fork 143
/
pyproject.toml
71 lines (66 loc) · 1.04 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
[tool.mypy]
files = "policy_sentry"
local_partial_types = true # will become the new default from version 2
strict = true
pretty = true
[[tool.mypy.overrides]]
module = [
"schema"
]
ignore_missing_imports = true
[tool.ruff]
line-length = 120
target-version = "py38"
[tool.ruff.lint]
preview = true
select = [
"A",
"ANN",
"ARG",
"B",
"C4",
"E",
"F",
"FURB",
"I",
"ISC",
"N",
"PERF",
"PIE",
"PLE",
"PLW",
"RUF",
"S",
"SIM",
"T10",
"UP",
"W",
"YTT",
]
ignore = ["E501"] # ruff fromat takes care of it
[tool.pytest.ini_options]
testpaths = [
"test",
"test/analysis",
"test/command",
"test/querying",
"test/util",
"test/writing",
]
norecursedirs = [
"_build",
"tmp*",
"__pycache__",
]
[tool.coverage.report]
omit = [
"policy_sentry/shared/awsdocs.py",
# omit anything in a .local directory anywhere
"*/.local/*",
"*/virtualenv/*",
"*/venv/*",
"*/.venv/*",
"*/docs/*",
"*/examples/*",
"utils/*",
]