Spaces:
Running
Running
repos: | |
- repo: https://github.com/pre-commit/pre-commit-hooks | |
rev: v5.0.0 | |
hooks: | |
- id: trailing-whitespace | |
- id: end-of-file-fixer | |
- id: check-added-large-files | |
- repo: https://github.com/psf/black | |
rev: 24.10.0 | |
hooks: | |
- id: black | |
entry: bash -c 'black "$@"; git add -u' -- | |
- repo: https://github.com/pycqa/isort | |
rev: 5.13.2 | |
hooks: | |
- id: isort | |
args: ["--profile", "black"] | |
entry: bash -c 'isort "$@"; git add -u' -- | |
- repo: https://github.com/PyCQA/flake8 | |
rev: 7.1.1 | |
hooks: | |
- id: flake8 | |
args: [--max-line-length=120, "--extend-ignore=E501,E402"] | |
- repo: https://github.com/kynan/nbstripout | |
rev: 0.8.1 | |
hooks: | |
- id: nbstripout | |
- repo: https://github.com/nbQA-dev/nbQA | |
rev: 1.9.1 | |
hooks: | |
- id: nbqa-black | |
additional_dependencies: [black==23.3.0] | |
entry: bash -c 'nbqa-black "$@"; git add -u' -- | |
- id: nbqa-isort | |
additional_dependencies: [isort==5.12.0] | |
entry: bash -c 'nbqa-isort "$@"; git add -u' -- | |
- id: nbqa-flake8 | |
additional_dependencies: [flake8==6.0.0] | |
args: [--max-line-length=120, "--extend-ignore=E501,E402,E231"] | |
- repo: https://github.com/mwouts/jupytext | |
rev: v1.16.4b | |
hooks: | |
- id: jupytext | |
args: [--sync, --pipe, black] | |
additional_dependencies: | |
- black==23.3.0 | |
- repo: https://github.com/aws-cloudformation/cfn-lint | |
rev: v1.20.1 # Use the latest version available | |
hooks: | |
- id: cfn-lint | |
files: cloudformation/.*\.(json|yml|yaml)$ | |
- repo: https://github.com/pre-commit/mirrors-mypy | |
rev: v1.13.0 | |
hooks: | |
- id: mypy | |
entry: bash -c 'mypy "$@"; git add -u' -- | |
- repo: https://github.com/PyCQA/pylint | |
rev: v3.3.1 | |
hooks: | |
- id: pylint | |
args: [--rcfile=.pylintrc] | |