diff --git a/.github/workflows/pre-commit-hooks.yml b/.github/workflows/pre-commit-hooks.yml index afbc70a..91bc721 100644 --- a/.github/workflows/pre-commit-hooks.yml +++ b/.github/workflows/pre-commit-hooks.yml @@ -4,6 +4,11 @@ on: push: branches: [main] pull_request: + types: + - opened + - reopened + - synchronize + - edited # for PR title changes branches: [main] permissions: {} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 590761e..e17cf5e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,3 +1,8 @@ +ci: + autofix_prs: true + autofix_commit_msg: 'chore: auto fixes from pre-commit.com hooks' + autoupdate_commit_ms: 'chore: pre-commit autoupdate' + repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v6.0.0 @@ -16,7 +21,7 @@ repos: exclude: '^\.yarn/releases/yarn.*js' args: ["--fix=lf"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.20 + rev: v0.15.21 hooks: # Run the python linter. - id: ruff-check