File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed
Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -23,20 +23,22 @@ jobs:
2323 uses : actions/setup-python@v3
2424 with :
2525 python-version : " 3.10"
26+
2627 - name : Install dependencies
2728 run : |
2829 python -m pip install uv
2930 uv sync
30-
31- # python -m pip install --upgrade pip
32- # pip install flake8 pytest
33- # if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
34- - name : Lint with flake8
31+
32+ - name : Lint with flake8 - Critical errors only
3533 run : |
36- # stop the build if there are Python syntax errors or undefined names
37- uvx flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
38- # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
39- uvx flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
34+ # Only fail on critical errors: syntax errors, undefined names, etc.
35+ uvx flake8 ./project --count --select=E9,F63,F7,F82 --show-source --statistics
36+
37+ - name : Lint with flake8 - All other issues (non-blocking)
38+ run : |
39+ # Run full linting but don't fail the build (exit-zero)
40+ uvx flake8 ./project --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
41+
4042# - name: Test with pytest
4143# run: |
4244# uvx pytest
You can’t perform that action at this time.
0 commit comments