Skip to content

Modernise ruff configuration#65

Merged
phinate merged 3 commits into
pr04-ty-typecheckfrom
pr05-ruff-config
Mar 19, 2026
Merged

Modernise ruff configuration#65
phinate merged 3 commits into
pr04-ty-typecheckfrom
pr05-ruff-config

Conversation

@phinate

@phinate phinate commented Mar 19, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Simplify rule selection to core best-practice set: E, W, F, I, UP, B, SIM, C4, RUF
  • Add target-version templated from min_python_version
  • Add per-file-ignores for tests (S101, D)
  • Add isort known-first-party config
  • Configure format quote-style and indent-style
  • Remove legacy isort.required-imports, unfixable, and typing-conditional config

Test plan

  • uv run ruff check . passes on a freshly generated project
  • uv run ruff format --check . passes
  • Adding an unused import causes ruff check to fail
  • ruff check --fix auto-fixes the unused import
  • No config for isort, black, or flake8 exists anywhere in the template

🤖 Generated with Claude Code

Nathan Simpson and others added 2 commits March 19, 2026 19:18
- Simplify rule selection to core best-practice set
- Add target-version templated from min_python_version
- Add per-file-ignores for tests
- Add isort known-first-party config
- Configure format quote-style and indent-style
- Remove legacy isort.required-imports and typing-conditional config

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Restore unfixable F401/F841 to protect re-exports and flag unused vars
- Remove no-op per-file-ignores (S101, D not in select)
- Remove redundant quote-style/indent-style (already defaults)
- Restore docstring-code-format

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- PGH: catches blanket type: ignore and noqa without codes
- G: enforces lazy logging format strings
- PT: pytest style conventions

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@phinate phinate merged commit c64a939 into pr04-ty-typecheck Mar 19, 2026
6 checks passed
@phinate phinate deleted the pr05-ruff-config branch March 19, 2026 19:26
phinate added a commit that referenced this pull request Mar 20, 2026
* feat: modernise ruff configuration

- Simplify rule selection to core best-practice set
- Add target-version templated from min_python_version
- Add per-file-ignores for tests
- Add isort known-first-party config
- Configure format quote-style and indent-style
- Remove legacy isort.required-imports and typing-conditional config

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: restore unfixable rules and clean up ruff config

- Restore unfixable F401/F841 to protect re-exports and flag unused vars
- Remove no-op per-file-ignores (S101, D not in select)
- Remove redundant quote-style/indent-style (already defaults)
- Restore docstring-code-format

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat: add PGH, G, and PT rule sets to ruff config

- PGH: catches blanket type: ignore and noqa without codes
- G: enforces lazy logging format strings
- PT: pytest style conventions

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
@phinate phinate mentioned this pull request Mar 20, 2026
1 task
phinate added a commit that referenced this pull request Mar 20, 2026
* feat: modernise ruff configuration

- Simplify rule selection to core best-practice set
- Add target-version templated from min_python_version
- Add per-file-ignores for tests
- Add isort known-first-party config
- Configure format quote-style and indent-style
- Remove legacy isort.required-imports and typing-conditional config



* fix: restore unfixable rules and clean up ruff config

- Restore unfixable F401/F841 to protect re-exports and flag unused vars
- Remove no-op per-file-ignores (S101, D not in select)
- Remove redundant quote-style/indent-style (already defaults)
- Restore docstring-code-format



* feat: add PGH, G, and PT rule sets to ruff config

- PGH: catches blanket type: ignore and noqa without codes
- G: enforces lazy logging format strings
- PT: pytest style conventions



---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant