Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/instructions/python.instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ Target: `>=3.14` (defined in `pyproject.toml`, pinned in `.python-version`)

## Style & Linting
- **Ruff** enforces fast style/lint checks — run `uv run --no-sync invoke tests.rufflint` to check, `uv run --no-sync invoke ruff.fix` to auto-correct
- **Pylint** enforces deeper static analysis — run `uv run --no-sync invoke tests.pylint` (must score 10.00/10 to pass `invoke test`)
- **Pylint** is scoped to just `no-member` — the one check Ruff can't do (real type inference across installed
deps to catch attribute/method access that doesn't exist on the inferred type). Everything else Pylint could
flag is left to Ruff to avoid duplicate linting. Run `uv run --no-sync invoke tests.pylint` (must score 10.00/10
to pass `invoke test` — see `[tool.pylint.messages_control]` in `pyproject.toml`)
- Run `uv run --no-sync invoke fix` to auto-correct everything Ruff can fix, then format
- Config lives in `pyproject.toml` under `[tool.ruff]` and `[tool.pylint]`
- Disable a rule inline only when necessary, with a comment explaining why:
Expand Down
23 changes: 2 additions & 21 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,27 +80,8 @@ ignore-paths = [
max-line-length = 100

[tool.pylint.messages_control]
disable = [
"raw-checker-failed",
"bad-inline-option",
"locally-disabled",
"file-ignored",
"suppressed-message",
"useless-suppression",
"deprecated-pragma",
"use-symbolic-message-instead",
"use-implicit-booleaness-not-comparison-to-string",
"use-implicit-booleaness-not-comparison-to-zero",
"missing-module-docstring",
"missing-function-docstring",
"fixme",
"line-too-long",
"duplicate-code",
"relative-beyond-top-level",
"invalid-name",
"logging-fstring-interpolation",
"import-error",
]
disable = ["all"]
enable = ["no-member"]

[tool.pylint.design]
max-args = 15
Expand Down
Loading