diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ffe89180..8b71ecdd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -53,9 +53,10 @@ repos: additional_dependencies: [black] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.11.13 + rev: v0.12.0 hooks: - - id: ruff + - id: ruff-check + name: ruff args: - "--fix" - "--exit-non-zero-on-fix" @@ -63,14 +64,14 @@ repos: - "--no-unsafe-fixes" - repo: https://github.com/PyCQA/bandit - rev: 1.8.4 + rev: 1.8.5 hooks: - id: bandit args: ["-r"] files: ^app/.*$ - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.16.0 + rev: v1.16.1 hooks: - id: mypy exclude: ^tests/.*$ diff --git a/.pre-commit-config_docker.yaml b/.pre-commit-config_docker.yaml index 3e1469cd..baac9d90 100644 --- a/.pre-commit-config_docker.yaml +++ b/.pre-commit-config_docker.yaml @@ -21,7 +21,7 @@ repos: args: [--markdown-linebreak-ext=md] - repo: https://github.com/asottile/pyupgrade - rev: v3.19.1 + rev: v3.20.0 hooks: - id: pyupgrade args: ["--py310-plus"] @@ -38,9 +38,10 @@ repos: additional_dependencies: [black] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.11.4 + rev: v0.12.0 hooks: - - id: ruff + - id: ruff-check + name: ruff args: - "--fix" - "--exit-non-zero-on-fix" @@ -48,14 +49,14 @@ repos: - "--no-unsafe-fixes" - repo: https://github.com/PyCQA/bandit - rev: 1.8.3 + rev: 1.8.5 hooks: - id: bandit args: ["-r"] files: ^app/.*$ - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.15.0 + rev: v1.16.1 hooks: - id: mypy exclude: ^tests/.*$ diff --git a/pyproject.toml b/pyproject.toml index 1ababd82..20e2a7fc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,7 +31,8 @@ extend-select = [ "PYI", # flake8-pyi ] ignore = [ - "PLR", # Design related pylint codes + "PLC", # Convention related pylint codes + "PLR", # Refactor related pylint codes ] isort.required-imports = ["from __future__ import annotations"]