Skip to content

Commit e87628a

Browse files
MaxGhenisclaude
andauthored
Add ruff check linting with E and F rules (#549)
Adds ruff lint configuration selecting E (pycodestyle errors) and F (pyflakes) rules with a conservative ignore list to avoid breaking existing code. Adds `ruff check .` to the Makefile format target. Does not include import sorting (I) rules. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 750a1e4 commit e87628a

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ documentation:
66

77
format:
88
ruff format .
9+
ruff check .
910

1011
install:
1112
pip install -e .[dev]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Added ruff check linting configuration with E and F rules to catch common Python errors.

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,7 @@ showcontent = true
9494

9595
[tool.ruff]
9696
line-length = 88
97+
98+
[tool.ruff.lint]
99+
select = ["E", "F"]
100+
ignore = ["E402", "E501", "E712", "E713", "E721", "E722", "E741", "F401", "F402", "F403", "F405", "F541", "F811", "F821", "F841"]

0 commit comments

Comments
 (0)