Skip to content

Commit

Permalink
pre-commit: exclude vendored files
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos committed Nov 13, 2023
1 parent 8d5ebc8 commit 449160e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
exclude: '^capsul/sphinxext/resources/numpy_ext/'
exclude: |
(?x)^(
capsul/sphinxext/resources/numpy_ext/|
doc/source/sphinxext/numpy_ext/
)$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
Expand All @@ -25,7 +29,6 @@ repos:
rev: 23.11.0
hooks:
- id: black
exclude: '^doc/'
#- repo: https://github.com/astral-sh/ruff-pre-commit
# rev: v0.1.5
# hooks:
Expand All @@ -37,6 +40,5 @@ repos:
- id: flake8
name: flake8 under python3
language_version: python3
exclude: ^(doc/source|capsul)/sphinxext/
args:
- --ignore=F722,F821

0 comments on commit 449160e

Please sign in to comment.