Skip to content

Commit

Permalink
Add pre-commit CI config
Browse files Browse the repository at this point in the history
Adjust YAML whitespace for consistency with our other YAML files
  • Loading branch information
mfisher87 committed Nov 9, 2023
1 parent 5253e92 commit c64b1d6
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
ci:
autoupdate_schedule: "monthly" # Like dependabot
autoupdate_commit_msg: "chore: update pre-commit hooks"
autofix_prs: false # Comment "pre-commit.ci autofix" on a PR to trigger

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: trailing-whitespace
- id: check-toml
- id: check-json
- repo: https://github.com/psf/black
rev: 20.8b1
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: trailing-whitespace
- id: check-toml
- id: check-json
- repo: https://github.com/psf/black
rev: 20.8b1
hooks:
- id: black

0 comments on commit c64b1d6

Please sign in to comment.