Skip to content

Enable 4 ruff rules (DTZ, ERA, ISC, INP) and fix 9 violations#3842

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

Enable 4 ruff rules (DTZ, ERA, ISC, INP) and fix 9 violations#3842
jlowin merged 1 commit intomainfrom
ruff-low-violation-rules

Conversation

@strawgate
Copy link
Copy Markdown
Collaborator

Builds on #3841 to enable four more ruff rule sets that had a combined 9 violations, all straightforward to fix.

Rules enabled:

  • DTZ — timezone-aware datetime: datetime.now()datetime.now(timezone.utc) (1 fix)
  • ERA — commented-out code: removed # expand=False,, clarified ambiguous comment (2 fixes)
  • ISC — implicit string concat: converted explicit + concatenation to implicit (5 auto-fixes)
  • INP — namespace packages: added missing __init__.py in auth/handlers/ (1 fix)
# DTZ: before
datetime.now().isoformat(timespec="seconds")
# DTZ: after
datetime.now(timezone.utc).isoformat(timespec="seconds")

🤖 Generated with Claude Code

@strawgate strawgate added the enhancement Improvement to existing functionality. For issues and smaller PR improvements. label Apr 11, 2026
- DTZ: Use timezone-aware datetime.now(timezone.utc)
- ERA: Remove commented-out code, clarify ambiguous comment
- ISC: Convert explicit string concatenation to implicit
- INP: Add missing __init__.py in auth/handlers/

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@jlowin jlowin force-pushed the ruff-low-violation-rules branch from c7ef452 to 31f9e56 Compare April 12, 2026 16:54
@jlowin jlowin merged commit 73deedf into main Apr 12, 2026
8 checks passed
@jlowin jlowin deleted the ruff-low-violation-rules branch April 12, 2026 16:54
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