|
35 | 35 |
|
36 | 36 | - id: debug-statements |
37 | 37 | name: Check for debug statements (pdb, ipdb) |
38 | | - exclude: '^tests/' |
| 38 | + exclude: '^(tests/|.*fixtures/sample_python_files/broken\.py$)' |
39 | 39 |
|
40 | 40 | - id: mixed-line-ending |
41 | 41 | name: Check for mixed line endings |
|
48 | 48 | - id: black |
49 | 49 | name: Format Python code with Black |
50 | 50 | args: ['--line-length=100'] |
51 | | - exclude: 'tests/fixtures/.*broken\.py$' |
| 51 | + exclude: '.*fixtures/.*broken\.py$' |
52 | 52 |
|
53 | 53 | # Python import sorting |
54 | 54 | - repo: https://github.com/pycqa/isort |
|
66 | 66 | name: Lint Python code with flake8 |
67 | 67 | args: [ |
68 | 68 | '--max-line-length=100', |
69 | | - '--extend-ignore=E203,W503,E501,E722,E721,F841,E402,F541', # Black compatibility + test/script leniency |
70 | | - '--exclude=.git,__pycache__,build,dist,*.egg-info,tests/fixtures/sample_python_files/broken.py' |
| 69 | + '--extend-ignore=E203,W503,E501,E722,E721,F841,E402,F541,E731', # Black compatibility + test/script leniency |
| 70 | + '--exclude=.git,__pycache__,build,dist,*.egg-info,**/fixtures/sample_python_files/broken.py' |
71 | 71 | ] |
72 | 72 |
|
73 | 73 | # Python type checking (optional, can be slow) |
@@ -125,7 +125,7 @@ repos: |
125 | 125 | - id: pydocstyle |
126 | 126 | name: Check docstring style |
127 | 127 | args: ['--convention=google', '--add-ignore=D100,D101,D102,D103,D104,D105,D106,D107,D202,D205,D209,D300,D301,D402,D403,D415'] |
128 | | - exclude: '^(tests/|packages/.*/tests/|docs/archive/|.*_test\.py$|test_.*\.py$|compare_batch_sizes\.py|profile_.*\.py|benchmark_.*\.py|saas_financial_model\.py)' |
| 128 | + exclude: '^(tests/|packages/.*/tests/|packages/.*/fixtures/|docs/archive/|.*_test\.py$|test_.*\.py$|compare_batch_sizes\.py|profile_.*\.py|benchmark_.*\.py|saas_financial_model\.py)' |
129 | 129 |
|
130 | 130 | # Configuration |
131 | 131 | default_language_version: |
|
0 commit comments