Skip to content

Commit

Permalink
Add pre-commit hook file (#2759)
Browse files Browse the repository at this point in the history
Hooks added:
* black
* flake8
* clang-format
* add trailing-whitespace 
* end-of-file-fixer
* markdown linter
  • Loading branch information
nilason committed Jan 22, 2023
1 parent d036ff8 commit 9ef5963
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.33.0
hooks:
- id: markdownlint
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
exclude: |
(?x)^(
python/libgrass_interface_generator/
)
- repo: https://github.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
exclude: |
(?x)^(
python/libgrass_interface_generator/
)
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v15.0.6
hooks:
- id: clang-format

0 comments on commit 9ef5963

Please sign in to comment.