Skip to content

Commit

Permalink
Add pre-commit config
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimergp committed Aug 29, 2024
1 parent c4aed16 commit 57a4039
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# disable autofixing PRs, commenting "pre-commit.ci autofix" on a pull request triggers a autofix
ci:
autofix_prs: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
# standard end of line/end of file cleanup
- id: mixed-line-ending
- id: end-of-file-fixer
- id: trailing-whitespace

# ensure syntaxes are valid
- id: check-yaml
exclude: ^(conda\.)?recipe/meta.yaml
# catch git merge/rebase problems
- id: check-merge-conflict
exclude: "^src/.*patch$"

0 comments on commit 57a4039

Please sign in to comment.