Skip to content

[pre-commit.ci] pre-commit autoupdate - #833

Merged
Pierre-Sassoulas merged 5 commits into
masterfrom
pre-commit-ci-update-config
Jul 30, 2026
Merged

[pre-commit.ci] pre-commit autoupdate#833
Pierre-Sassoulas merged 5 commits into
masterfrom
pre-commit-ci-update-config

Conversation

@pre-commit-ci

@pre-commit-ci pre-commit-ci Bot commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

pre-commit-ci Bot and others added 5 commits July 27, 2026 17:21
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.15.22 → v0.16.0](astral-sh/ruff-pre-commit@v0.15.22...v0.16.0)
Ruff 0.16.0 enables 413 rules by default (up from 59), so
lint.extend-select started pulling in hundreds of never-selected
rules (128 FA100 errors alone). Switch to an explicit lint.select
with the same list — it already contains E and F in full, which
covered the old defaults — to preserve the previous rule set.

Also rename the hook id from the legacy alias "ruff" to "ruff-check".

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Ruff 0.16.0 enables 413 rules by default (up from 59). Keep
lint.extend-select so the new defaults apply, and fix the resulting
140 errors instead of opting out:

- FA100: add `from __future__ import annotations` everywhere and
  simplify Optional[X]/quoted annotations accordingly (auto-fix),
  then drop the typing imports left unused (the fix is not offered
  in __init__.py files)
- PYI036: use proper `__exit__` annotations in tools/utils.py
- TRY004: raise TypeError instead of ValueError in Location.__lt__
- PERF402, C400, C414, PIE810, PYI034: auto-fixed
- DTZ005: noqa, the summary timestamps intentionally stay naive
  local time so the output format does not change
- BLE001: noqa, any mypy crash must become a fatal-build-error

The unquoted Queue annotation in tools/mypy needs a pylint pragma:
multiprocessing.Queue is a factory function at runtime, so pylint
rightly calls it unsubscriptable, while type checkers see the class.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The PERF402 fix replaced the append loop with a conditional extend,
which leaves mypy unable to infer the list's element type.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Pierre-Sassoulas
Pierre-Sassoulas merged commit 5b4ffdd into master Jul 30, 2026
6 checks passed
@Pierre-Sassoulas
Pierre-Sassoulas deleted the pre-commit-ci-update-config branch July 30, 2026 12:01
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