diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 579de85..2aa5877 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,22 +1,26 @@ +--- +ci: + autoupdate_schedule: monthly repos: + - repo: meta + hooks: + - id: check-useless-excludes - repo: https://github.com/pre-commit/pre-commit-hooks rev: v5.0.0 hooks: + - id: check-added-large-files - id: check-executables-have-shebangs - id: check-merge-conflict - id: check-toml - id: check-vcs-permalinks - id: check-yaml - id: debug-statements + - id: detect-private-key - id: end-of-file-fixer + - id: fix-byte-order-marker + - id: trailing-whitespace - id: mixed-line-ending args: [--fix, lf] - - id: trailing-whitespace - - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.12.1" - hooks: - - id: ruff - args: [--fix, --exit-non-zero-on-fix] - repo: https://github.com/codespell-project/codespell rev: v2.4.1 hooks: @@ -28,9 +32,10 @@ repos: files: \.(yaml|yml)$ types: [file, yaml] entry: yamllint --strict - - repo: https://github.com/psf/black - rev: 25.1.0 + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.12.0 hooks: - - name: black - id: black - args: ["--line-length", "79"] + - id: ruff-format + alias: ruff + - id: ruff-check + alias: ruff