Skip to content

Commit

Permalink
minimal pre-commit config
Browse files Browse the repository at this point in the history
  • Loading branch information
Kilo59 committed Mar 14, 2024
1 parent 0e22164 commit 9094ab7
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# For available hooks and configuration options see: https://pre-commit.com/hooks.html
# To manage and run locally, first install `pre-commit` https://pre-commit.com/#installation
# To auto update to the latest versions `pre-commit autoupdate`
# To manually run against all files `pre-commit run --all-files`
# To force hooks to run on local commits `pre-commit install`
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: no-commit-to-branch
args: [--branch, develop, --branch, main]
- id: check-json
exclude: .vscode/settings\.json|tsconfig
- id: check-yaml
- id: detect-private-key
# https://pre-commit.ci/
ci:
autofix_commit_msg: |
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
autofix_prs: true
autoupdate_branch: "main"
autoupdate_commit_msg: "[pre-commit.ci] pre-commit autoupdate"
autoupdate_schedule: monthly
submodules: false

0 comments on commit 9094ab7

Please sign in to comment.