Skip to content

Commit 9e66261

Browse files
MaxGhenisclaude
andcommitted
Add ruff check linting with E and F rules
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 2b2a727 commit 9e66261

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

Makefile

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

88
format:
99
ruff format .
10+
ruff check .
1011

1112
install:
1213
pip install -e ".[dev]" --config-settings editable_mode=compat
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
@@ -103,3 +103,7 @@ showcontent = true
103103
directory = "removed"
104104
name = "Removed"
105105
showcontent = true
106+
107+
[tool.ruff.lint]
108+
select = ["E", "F"]
109+
ignore = ["E402", "E501", "E712", "E713", "E721", "E722", "E741", "F401", "F402", "F403", "F405", "F541", "F811", "F821", "F841"]

0 commit comments

Comments
 (0)