forked from salesforce/cloudsplaining
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
79 lines (74 loc) · 1.38 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
[tool.mypy]
files = "cloudsplaining"
local_partial_types = true # will become the new default from version 2
strict = true
pretty = true
disallow_untyped_decorators = false
[[tool.mypy.overrides]]
module = [
"schema",
"cached_property",
]
ignore_missing_imports = true
[tool.ruff]
line-length = 120
target-version = "py38"
[tool.ruff.lint]
preview = true
select = [
"A",
"ANN",
"ARG",
"B",
"E",
"F",
"FA",
"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/command",
"test/output",
"test/scanning",
"test/shared",
]
norecursedirs = [
"_build",
"tmp*",
"__pycache__",
]
[tool.coverage.report]
omit = [
# omit anything in a .local directory anywhere
"*/.local/*",
"*/virtualenv/*",
"*/venv/*",
"*/.venv/*",
"*/docs/*",
"*/examples/*",
"utils/*",
# Where we want to skip
"cloudsplaining/command/download.py",
"cloudsplaining/shared/constants.py",
"cloudsplaining/command/expand_policy.py",
"cloudsplaining/command/create_exclusions_file.py",
"cloudsplaining/output/data_file.py",
"cloudsplaining/output/html_report.py",
"cloudsplaining/output/triage_worksheet.py",
]