Skip to content

Commit 7903965

Browse files
pre-commit-ci[bot]frostmingclaude
authored
[pre-commit.ci] pre-commit autoupdate (#569)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.15.21 → v0.16.9](astral-sh/ruff-pre-commit@v0.15.21...v0.16.9) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * chore: pin ruff base rule selection Ruff 0.16 expanded its default rule set, which surfaced ~50 new violations. Pin the previous defaults explicitly so the version bump does not change the lint policy, and revert the auto fixes made for the newly enabled rules. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Frost Ming <me@frostming.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent ac3b04e commit 7903965

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎.pre-commit-config.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repos:
1515
args: [--py39-plus]
1616

1717
- repo: https://github.com/astral-sh/ruff-pre-commit
18-
rev: v0.15.21
18+
rev: v0.16.9
1919
hooks:
2020
- id: ruff
2121
args: [--fix, --exit-non-zero-on-fix, --show-fixes]

‎pyproject.toml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ Sphinx = "^4.3.2"
3333
furo = "^2022.9.29"
3434

3535
[tool.ruff.lint]
36+
# Pin the base rule set; ruff 0.16 expanded its default selection.
37+
select = ["E4", "E7", "E9", "F"]
3638
extend-select = [
3739
"I", # isort
3840
"B", # flake8-bugbear

0 commit comments

Comments
 (0)