Skip to content

Commit 4c74108

Browse files
ci (pyscn): add code quality scanner
1 parent 831e9a3 commit 4c74108

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

{{cookiecutter.project_slug}}/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
*.sqlite
33
*.pem
44
**/facts/
5+
.pyscn/
56
.ruff*
67
tilt-example-python/
78

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[complexity]
2+
low_threshold = 15
3+
medium_threshold = 25
4+
5+
[dead_code]
6+
min_severity = "warning"
7+
8+
[output]
9+
directory = ".pyscn/reports"
10+
11+
[analysis]
12+
recursive = true # Recursively analyze directories
13+
follow_symlinks = false # Follow symbolic links
14+
include_patterns = ["**/*.py"] # File patterns to include
15+
exclude_patterns = [ # File patterns to exclude
16+
"**/test_*.py",
17+
"**/*_test.py",
18+
"**/__pycache__/*",
19+
"**/*.pyc",
20+
"**/.pytest_cache/",
21+
".tox/",
22+
"venv/",
23+
"env/",
24+
".venv/",
25+
".env/",
26+
"utils/*",
27+
]

0 commit comments

Comments
 (0)