Skip to content

Commit

Permalink
Allow hooks to run only on docs
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKora committed Dec 5, 2023
1 parent 16a8fcc commit c2580f7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
default_language_version:
python: python3.
# default_stages: [pre-commit, manual]
exclude: ".*tmps.*"

repos:
- repo: local
Expand All @@ -20,7 +19,7 @@ repos:
- mdformat-gfm
- mdformat-black
files: 'docs.*\.md$'
# files: '^(?!README\.md$)docs..*\.md$'
# files: '^(?!README\.md$)docs.*\.md$'
# exclude: '.*README\.md$'
always_run: true

Expand All @@ -29,5 +28,7 @@ repos:
hooks:
- id: check-yaml
always_run: true
files: 'docs.*\.md$'
- id: trailing-whitespace
files: 'docs.*\.md$'
always_run: true

0 comments on commit c2580f7

Please sign in to comment.