Skip to content
12 changes: 7 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
exclude: (
static/img/
docs/05function/_samples/indent.ipynb
)
repos:
- repo: https://github.com/datarootsio/databooks
rev: 1.2.3
Expand All @@ -18,6 +14,7 @@ repos:
hooks:
- id: black
- id: black-jupyter
exclude: docs/01python/07for/_samples/sum_1to100.ipynb
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.26.0
hooks:
Expand All @@ -43,21 +40,25 @@ repos:
rev: 1.5.3
hooks:
- id: nbqa-check-ast
exclude: docs/01python/05function/_samples/indent.ipynb
# - id: nbqa-flake8
- id: nbqa-isort
- id: nbqa-mypy
# - id: nbqa-mypy
# - id: nbqa-pylint
- id: nbqa-pyupgrade
# - id: nbqa-yapf
- id: nbqa-autopep8
exclude: docs/01python/07for/_samples/sum_1to(20|100).ipynb
# - id: nbqa-pydocstyle
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-added-large-files
- id: check-json
exclude: .eslintrc.json|tsconfig.json
- id: pretty-format-json
args: [--autofix]
exclude: ^(package.json|package-lock.json|.eslintrc.json|tsconfig.json)$
- id: check-merge-conflict
- id: check-toml
- id: check-xml
Expand All @@ -67,6 +68,7 @@ repos:
args: [--allow-missing-credentials]
- id: detect-private-key
- id: end-of-file-fixer
exclude: \.svg$
- id: no-commit-to-branch
args: [--branch, main]
- id: requirements-txt-fixer
Expand Down