Skip to content

Commit f82e693

Browse files
Update flake8 linting configuration to exclude specific directories in CI workflows
- Added `--exclude=dynamo/external,external` option to flake8 commands in both python-package.yml and python-plain-run-test.yml to prevent linting errors from external directories.
1 parent ae39b05 commit f82e693

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

.flake8

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[flake8]
2+
exclude =
3+
.git,
4+
__pycache__,
5+
.venv,
6+
venv,
7+
build,
8+
dist,
9+
*.egg-info,
10+
dynamo/external,
11+
external
12+
select = E9,F63,F7,F82
13+
count = True
14+
show-source = True
15+
statistics = True

.github/workflows/python-package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ jobs:
3535
- name: Lint with flake8
3636
run: |
3737
# stop the build if there are Python syntax errors or undefined names
38-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
38+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude=dynamo/external,external
3939
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
40-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
40+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --exclude=dynamo/external,external
4141
# - name: Test with pytest
4242
# run: |
4343
# pytest

.github/workflows/python-plain-run-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ jobs:
3434
- name: Lint with flake8
3535
run: |
3636
# stop the build if there are Python syntax errors or undefined names
37-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
37+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude=dynamo/external,external
3838
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
39-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
39+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --exclude=dynamo/external,external
4040
# - name: Test with pytest
4141
# run: |
4242
# pytest

0 commit comments

Comments
 (0)