Skip to content

Commit

Permalink
Add simple pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoinePrv committed Nov 18, 2022
1 parent 8ef0ee6 commit cc6f421
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: end-of-file-fixer
- id: trailing-whitespace
- id: mixed-line-ending
args: ["--fix=lf"]
exclude: '\.bat$'
- id: check-json
- id: pretty-format-json
args: ["--autofix", "--top-keys=version"]
- id: check-yaml
- id: detect-private-key
- id: check-merge-conflict
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.3.1
hooks:
- id: forbid-tabs
- id: remove-tabs
args: [--whitespaces-count, "4"]
2 changes: 2 additions & 0 deletions environment-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ dependencies:
- xsimd=9.0.1
- nlohmann_json
- doctest=2.4.7
# Dev dependencies
- pre-commit

0 comments on commit cc6f421

Please sign in to comment.