From 61a8b4522f82f00e182e781572929d4f6f4330c0 Mon Sep 17 00:00:00 2001 From: Leander Furumo Date: Fri, 23 Oct 2026 22:07:53 +0200 Subject: [PATCH] update pre-commit hooks Co-Authored-By: Claude Opus 5.5 --- .pre-commit-config.yaml | 12 ++++++------ pyproject.toml | 4 ++++ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d567fae..248c8ca 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v6.0.0 hooks: - id: end-of-file-fixer - id: trailing-whitespace @@ -8,17 +8,17 @@ repos: - id: end-of-file-fixer - repo: https://github.com/psf/black - rev: 23.3.0 + rev: 26.10.1 hooks: - id: black - repo: https://github.com/pycqa/isort - rev: 5.12.0 + rev: 9.0.2 hooks: - id: isort name: isort (python) - - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: "v0.0.245" + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: "v0.17.2" hooks: - - id: ruff + - id: ruff-check diff --git a/pyproject.toml b/pyproject.toml index 478dd59..2671a52 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,3 +10,7 @@ known_first_party = ["black"] [tool.ruff] line-length = 120 + +[tool.ruff.lint] +# The rules ruff checked by default before it widened its defaults. Its import sorting rule would also conflict with isort +select = ["E", "F"]