Skip to content

Commit

Permalink
Add a pre-commit config file
Browse files Browse the repository at this point in the history
The easiest way to install these pre-commit hooks is by running
`pip install --user pre-commit && pre-commit install`

The current checks are quite basic and only check that the changed files
don't have trailing whitespace and have valid line endings.
  • Loading branch information
arichardson committed Feb 24, 2023
1 parent 25e0d93 commit a434afa
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
exclude: "^sail_latex_riscv/.*"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: mixed-line-ending
args: [ "--fix=lf" ]
- id: check-case-conflict

0 comments on commit a434afa

Please sign in to comment.