Skip to content

Commit

Permalink
Add Pre-Commit Hooks (#63)
Browse files Browse the repository at this point in the history
This PR adds a set of precommit hooks to the framework to validate commits. We add the .pre-commit-config.yaml to the main directory for that.
  • Loading branch information
franziska-wegner committed Dec 29, 2023
1 parent 51db537 commit 5133902
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-case-conflict
- id: check-json
- id: check-symlinks
- id: check-xml
- id: check-yaml
- id: detect-private-key
- id: end-of-file-fixer
- id: no-commit-to-branch
args: [--branch, staging, --branch, main]
- id: pretty-format-json
args: [--autofix, --indent, 4]
- id: requirements-txt-fixer
- id: trailing-whitespace

0 comments on commit 5133902

Please sign in to comment.