diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 32d28f361..640aade37 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 @@ -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: @@ -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 @@ -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