Skip to content

Commit 36af740

Browse files
abhizipstackclaude
andcommitted
fix: add pre-commit.ci configuration for automated linting on PRs
Add ci section to .pre-commit-config.yaml: - Skip hooks that don't work in CI: no-commit-to-branch, mypy (system), protolint-docker, hadolint-docker - Enable autofix PRs - Set monthly autoupdate schedule After merging, enable pre-commit.ci at https://pre-commit.ci/ for this repo and add "pre-commit.ci - pr" as a required status check. Jira: OR-1356 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e074dad commit 36af740

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22
# See https://pre-commit.com for more information
33
# See https://pre-commit.com/hooks.html for more hooks
44

5+
ci:
6+
skip:
7+
- no-commit-to-branch
8+
- mypy
9+
- protolint-docker
10+
- hadolint-docker
11+
autofix_prs: true
12+
autoupdate_schedule: monthly
13+
514
# Force all unspecified python hooks to run python 3.10
615
default_language_version:
716
python: python3.10

0 commit comments

Comments
 (0)