Skip to content

Commit eee5b1c

Browse files
authored
Merge pull request #4 from emmanueljordy/add_data_processing
Merge PR on main python-synthpop, preparations for new release of pip package
2 parents 9e3383e + f721344 commit eee5b1c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+3292
-1040
lines changed

.pre-commit-config.yaml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
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+

0 commit comments

Comments
 (0)