File tree Expand file tree Collapse file tree 6 files changed +791
-1
lines changed
Expand file tree Collapse file tree 6 files changed +791
-1
lines changed Original file line number Diff line number Diff line change 1+ repos :
2+ # 1. Code Formatter: Black (Ensures uniform formatting)
3+ - repo : https://github.com/psf/black
4+ rev : stable
5+ hooks :
6+ - id : black
7+
8+ # 2. Code Formatter: isort (Sorts imports)
9+ - repo : https://github.com/PyCQA/isort
10+ rev : 5.12.0
11+ hooks :
12+ - id : isort
13+
14+ # 3. Linter: Flake8 (Finds style & syntax issues)
15+ - repo : https://github.com/pycqa/flake8
16+ rev : 6.0.0
17+ hooks :
18+ - id : flake8
19+
20+ # 4. Security: Bandit (Finds security vulnerabilities)
21+ - repo : https://github.com/PyCQA/bandit
22+ rev : stable
23+ hooks :
24+ - id : bandit
25+ args : ["-r", "."]
26+
27+ # 5. Security: detect-secrets (Prevents committing secrets)
28+ - repo : https://github.com/Yelp/detect-secrets
29+ rev : v1.3.0
30+ hooks :
31+ - id : detect-secrets-hook
32+
33+ # 6. Type Checker: mypy (Checks for type errors)
34+ - repo : https://github.com/pre-commit/mirrors-mypy
35+ rev : v1.0
36+ hooks :
37+ - id : mypy
38+
39+ # 7. Tests: Pytest (Runs test cases before commit)
40+ - repo : local
41+ hooks :
42+ - id : pytest
43+ name : Run Pytest
44+ entry : pytest
45+ language : system
46+ types : [python]
47+
48+ # 8. Dependency Check: pip-audit (Checks for vulnerable dependencies)
49+ - repo : https://github.com/pypa/pip-audit
50+ rev : v2.4.0
51+ hooks :
52+ - id : pip-audit
53+
54+ # 9. File Cleanup: Remove trailing whitespace
55+ - repo : https://github.com/pre-commit/pre-commit-hooks
56+ rev : v4.4.0
57+ hooks :
58+ - id : trailing-whitespace
59+
60+
Original file line number Diff line number Diff line change 11numpy >= 1.20.0
22pandas >= 1.3.0
33scikit-learn >= 1.0.0
4- pytest >= 7.0.0
4+ pytest >= 7.0.0
5+ copulas >= 0.1.0
You can’t perform that action at this time.
0 commit comments