Skip to content

build(deps): bump ruff to 0.17.4 - #40

Merged
darylalim merged 1 commit into
mainfrom
deps/ruff-0.17
Nov 10, 2026
Merged

darylalim merged 1 commit into
mainfrom
deps/ruff-0.17

Conversation

@darylalim

Copy link
Copy Markdown
Owner

Step 4a of the dependency refresh: ruff 0.16.8 → 0.17.4, a minor treated as its own reviewable change (CLAUDE.md, Commands).

What 0.17 changes for us

  • Default rule set (breaking). Seven flake8-datetimez rules leave the defaults: DTZ001, DTZ005, DTZ006, DTZ007, DTZ011, DTZ012 and DTZ901. F406 (a syntax error) joins them. Left alone, the gate would have narrowed with every check still green. pyproject.toml therefore selects the seven explicitly. ruff check --show-settings confirms the enabled set is exactly 0.16.8's 414 rules plus F406, and a probe file still raises DTZ005.
  • No change: lint and format are clean under 0.17.4, with no code changes. Coverage is unchanged: 61 files linted and 71 formatted, 22 of them Markdown, the same counts as under 0.16.8.
  • Not applicable: the default Python version (ours comes from requires-python), the pragma-comment line-length change (nothing is reformatted) and the removal of ruff-lsp.

Docs

CLAUDE.md records the DTZ narrowing and says to diff the enabled rules on every ruff upgrade. Its preview early-warning figure is refreshed: under 0.17.4, preview lint reports 17 findings and the preview formatter would reformat 12 files (7 on 2026-10-29).

Verification

  • GATE_FORCE=1 ./scripts/gate.sh passes.
  • No eval: ruff is not on any model path.

🤖 Generated with Claude Code

ruff 0.17 drops seven flake8-datetimez rules (DTZ001, DTZ005-DTZ007,
DTZ011, DTZ012, DTZ901) from its default set and adds F406. Select the
seven explicitly so the upgrade does not narrow the lint gate; the
enabled rule set is now 0.16.8's plus F406. No code changes: lint and
format are clean under 0.17.4.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@darylalim
darylalim merged commit 055638e into main Nov 10, 2026
2 checks passed
@darylalim
darylalim deleted the deps/ruff-0.17 branch November 10, 2026 23:26
This was referenced Nov 10, 2026
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