diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6c38be6..cc242a7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,20 +1,25 @@ repos: -- repo: https://github.com/pre-commit/pre-commit-hooks - rev: v1.4.0 - hooks: - - id: check-added-large-files - - id: detect-private-key - - id: trailing-whitespace - - id: end-of-file-fixer -- repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.2.0 - hooks: - - id: ruff-format - - id: ruff - args: [ --fix, --exit-non-zero-on-fix ] -- repo: https://github.com/doublify/pre-commit-rust - rev: v1.0 - hooks: - - id: fmt - entry: bash -c 'cd rust && cargo fmt' - args: ['--verbose', '--'] + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.6.0 # pre-commit-hooks version + hooks: + - id: check-added-large-files + - id: detect-private-key + - id: trailing-whitespace + - id: end-of-file-fixer + - id: check-merge-conflict + - id: detect-aws-credentials + args: [ --allow-missing-credentials ] + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.2.0 # ruff version + hooks: + - id: ruff-format + - id: ruff + args: [ --fix, --exit-non-zero-on-fix ] + - repo: https://github.com/doublify/pre-commit-rust + rev: v1.0 + hooks: + - id: fmt + entry: bash -c 'cd rust && cargo fmt' + args: ['--verbose', '--'] + +minimum_pre_commit_version: 3.7.1 diff --git a/pyproject.toml b/pyproject.toml index 6245343..0640a5a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,7 +32,7 @@ tests = [ dev = [ "maturin", "ruff==0.2.0", - "pre-commit", + "pre-commit>=3.7.1", ] [project.urls]