Skip to content

Commit 8c5ae95

Browse files
authored
Merge pull request #65 from sikepuri-algorithm/feature-fix-precommit
Fix pre-commit
2 parents e2c8713 + f64813a commit 8c5ae95

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
# See https://pre-commit.com for more information
22
# See https://pre-commit.com/hooks.html for more hooks
3-
exclude: (
4-
static/img/
5-
docs/05function/_samples/indent.ipynb
6-
)
73
repos:
84
- repo: https://github.com/datarootsio/databooks
95
rev: 1.2.3
@@ -18,6 +14,7 @@ repos:
1814
hooks:
1915
- id: black
2016
- id: black-jupyter
17+
exclude: docs/01python/07for/_samples/sum_1to100.ipynb
2118
- repo: https://github.com/pre-commit/mirrors-eslint
2219
rev: v8.26.0
2320
hooks:
@@ -43,21 +40,25 @@ repos:
4340
rev: 1.5.3
4441
hooks:
4542
- id: nbqa-check-ast
43+
exclude: docs/01python/05function/_samples/indent.ipynb
4644
# - id: nbqa-flake8
4745
- id: nbqa-isort
48-
- id: nbqa-mypy
46+
# - id: nbqa-mypy
4947
# - id: nbqa-pylint
5048
- id: nbqa-pyupgrade
5149
# - id: nbqa-yapf
5250
- id: nbqa-autopep8
51+
exclude: docs/01python/07for/_samples/sum_1to(20|100).ipynb
5352
# - id: nbqa-pydocstyle
5453
- repo: https://github.com/pre-commit/pre-commit-hooks
5554
rev: v4.3.0
5655
hooks:
5756
- id: check-added-large-files
5857
- id: check-json
58+
exclude: .eslintrc.json|tsconfig.json
5959
- id: pretty-format-json
6060
args: [--autofix]
61+
exclude: ^(package.json|package-lock.json|.eslintrc.json|tsconfig.json)$
6162
- id: check-merge-conflict
6263
- id: check-toml
6364
- id: check-xml
@@ -67,6 +68,7 @@ repos:
6768
args: [--allow-missing-credentials]
6869
- id: detect-private-key
6970
- id: end-of-file-fixer
71+
exclude: \.svg$
7072
- id: no-commit-to-branch
7173
args: [--branch, main]
7274
- id: requirements-txt-fixer

0 commit comments

Comments
 (0)