diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index eb8015c..7eeae85 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: "v5.0.0" + rev: "v6.0.0" hooks: - id: check-added-large-files - id: check-case-conflict @@ -14,8 +14,8 @@ repos: - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.9.2" + rev: "v0.15.17" hooks: - - id: ruff - args: ["--fix", "--show-fixes"] + - id: ruff-check + args: ["--fix"] - id: ruff-format diff --git a/pyproject.toml b/pyproject.toml index 61aa14a..c9e6fe9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,8 +50,9 @@ requires = [ ] build-backend = "setuptools.build_meta" -[tool.ruff.lint] -extend-select = [ +[tool.ruff] +show-fixes = true +lint.extend-select = [ "B", # flake8-bugbear "I", # isort "ARG", # flake8-unused-arguments @@ -71,10 +72,10 @@ extend-select = [ "YTT", # flake8-2020 "EXE", # flake8-executable ] -ignore = [ +lint.ignore = [ "PLR", # Design related pylint codes ] -isort.required-imports = ["from __future__ import annotations"] +lint.isort.required-imports = ["from __future__ import annotations"] [tool.ruff.lint.per-file-ignores] "tests/**" = ["T20"]