Skip to content

Commit

Permalink
pre-commit: exclude tools & submodules from multiple checks
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-zero committed Nov 20, 2019
1 parent ebd9002 commit 4575164
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,25 @@ repos:
rev: stable
hooks:
- id: black
exclude: >-
(?x)^(
exts/.*|
tools/prettify/fprettify/.|
)$
- repo: local
hooks:
- id: doxify
name: Run doxify
entry: ./tools/doxify/doxify.sh
language: script
files: '.*\.(F|f90)$'
files: '^src/.*\.(F|f90)$'
- id: prettify
name: Run prettify
entry: ./tools/prettify/prettify.py
language: script
files: '.*\.(F|f90)$'
files: '^src/.*\.(F|f90)$'
exclude: >-
(?x)^(
tools/.*|
src/base/base_uses.f90|
src/common/util.F|
)$
Expand Down

0 comments on commit 4575164

Please sign in to comment.