Skip to content

Commit 2bd3ca5

Browse files
committed
fix: exclude auto-generated files from flake8 linting
**Changes**: - Exclude versioneer.py from flake8 checks (auto-generated by versioneer) - Exclude src/accelerometer/_version.py (auto-generated version file) **Rationale**: Auto-generated files should not be linted as they are not maintained manually and may not conform to project style guidelines. These files are generated by the versioneer package for git-based versioning.
1 parent 3faf243 commit 2bd3ca5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/flake8.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
- name: Lint with flake8
2929
run: |
3030
# stop the build if there are Python syntax errors or undefined names
31-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
31+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics \
32+
--exclude=versioneer.py,src/accelerometer/_version.py
3233
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
33-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
34+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics \
35+
--exclude=versioneer.py,src/accelerometer/_version.py

0 commit comments

Comments
 (0)