diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 080591c..f365e4b 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,19 +8,19 @@ repos: - id: end-of-file-fixer - repo: https://github.com/psf/black - rev: 23.3.0 + rev: 26.10.1 hooks: - id: black exclude: .*/deprecated/.* - 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 exclude: .*/deprecated/.* diff --git a/pyproject.toml b/pyproject.toml index 478dd59..2d28760 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,3 +10,7 @@ known_first_party = ["black"] [tool.ruff] line-length = 120 + +[tool.ruff.lint] +# Keep the rule set ruff used before v0.17 expanded its defaults +select = ["E4", "E7", "E9", "F"]