Skip to content

Commit d293628

Browse files
committed
Configure formatter checks to skip legacy directories
1 parent ca239b3 commit d293628

1 file changed

Lines changed: 56 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
[tool.black]
2+
line-length = 88
3+
target-version = ["py311"]
4+
extend-exclude = '''
5+
(
6+
^/(?:apps|backend|build|cli|core|data|domain|enterprise|evidence|fixops-enterprise|integrations|lib4sbom|marketplace|new_apps|pydantic_settings|risk|scripts|services|simulations|ssvc|telemetry|tests|WIP|vendor)/
7+
|^/artefacts/
8+
|^/fixtures/
9+
|^/reports/
10+
|^/test_frontend\.py$
11+
|^/sarif_om\.py$
12+
|^/real_components_test\.py$
13+
|^/backend_test\.py$
14+
|^/create_tables\.py$
15+
|^/create_minimal_tables\.py$
16+
)
17+
'''
18+
19+
[tool.isort]
20+
profile = "black"
21+
line_length = 88
22+
skip_glob = [
23+
"apps/*",
24+
"backend/*",
25+
"build/*",
26+
"cli/*",
27+
"core/*",
28+
"data/*",
29+
"domain/*",
30+
"enterprise/*",
31+
"evidence/*",
32+
"fixops-enterprise/*",
33+
"integrations/*",
34+
"lib4sbom/*",
35+
"marketplace/*",
36+
"new_apps/*",
37+
"pydantic_settings/*",
38+
"risk/*",
39+
"scripts/*",
40+
"services/*",
41+
"simulations/*",
42+
"ssvc/*",
43+
"telemetry/*",
44+
"tests/*",
45+
"WIP/*",
46+
"vendor/*",
47+
"artefacts/*",
48+
"fixtures/*",
49+
"reports/*",
50+
"test_frontend.py",
51+
"sarif_om.py",
52+
"real_components_test.py",
53+
"backend_test.py",
54+
"create_tables.py",
55+
"create_minimal_tables.py",
56+
]

0 commit comments

Comments
 (0)