Skip to content

Commit ae6f7f6

Browse files
committed
flake8
1 parent 637f83d commit ae6f7f6

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

.github/workflows/ci.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-
uv run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
37+
uv run flake8 allocator --count --select=E9,F63,F7,F82 --show-source --statistics
3838
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
39-
uv run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
39+
uv run flake8 allocator --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
4040
4141
- name: Test with pytest
4242
run: |

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
*.log
77
/allocator/kahip/
88
venv
9+
.venv
910
docs/build
1011
dist
1112
*.egg-info
1213
build
1314
.DS_Store
15+
uv.lock

pyproject.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,23 @@ max-line-length = 127
112112
max-complexity = 10
113113
select = ["E9", "F63", "F7", "F82"]
114114
ignore = ["E203", "W503"]
115+
exclude = [
116+
".git",
117+
"__pycache__",
118+
".venv",
119+
"venv",
120+
".env",
121+
"env",
122+
"dist",
123+
"build",
124+
"*.egg-info",
125+
".tox",
126+
".coverage",
127+
".coverage.*",
128+
".cache",
129+
".mypy_cache",
130+
".pytest_cache"
131+
]
115132

116133
[tool.coverage.run]
117134
source = ["allocator"]

0 commit comments

Comments
 (0)