Skip to content

Enable 7 zero-violation ruff rules#3841

Merged
jlowin merged 1 commit intomainfrom
ruff-zero-violation-rules
Apr 12, 2026
Merged

Enable 7 zero-violation ruff rules#3841
jlowin merged 1 commit intomainfrom
ruff-zero-violation-rules

Conversation

@strawgate
Copy link
Copy Markdown
Collaborator

Enables seven ruff lint rule sets that have zero existing violations in src/, so this is purely additive — no code changes, just tighter guardrails going forward.

"PLE",  # pylint-error: invalid operations, syntax issues
"LOG",  # flake8-logging: logging module misuse
"RSE",  # flake8-raise: unnecessary parentheses on raise
"FA",   # flake8-future-annotations
"FLY",  # flynt: static joins → f-strings
"SLOT", # flake8-slots: __slots__ enforcement
"TID",  # flake8-tidy-imports: banned/relative imports

New rules are exempted from non-src/ files via per-file-ignores, matching the existing pattern.

🤖 Generated with Claude Code

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@strawgate strawgate added the enhancement Improvement to existing functionality. For issues and smaller PR improvements. label Apr 11, 2026
Copy link
Copy Markdown
Member

@jlowin jlowin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pure guardrail tightening — seven rule sets added, zero violations. Safe groundwork.

@jlowin jlowin merged commit b99b050 into main Apr 12, 2026
9 checks passed
@jlowin jlowin deleted the ruff-zero-violation-rules branch April 12, 2026 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Improvement to existing functionality. For issues and smaller PR improvements.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants