Spaces:
Running
Running
File size: 1,882 Bytes
3fdf87c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- repo: https://github.com/psf/black
rev: 24.8.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.7.1
hooks:
- id: nbstripout
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.8.7
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.11.0 # Use the latest version available
hooks:
- id: cfn-lint
files: cloudformation/.*\.(json|yml|yaml)$
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.2
hooks:
- id: mypy
entry: bash -c 'mypy "$@"; git add -u' --
- repo: https://github.com/PyCQA/pylint
rev: v3.2.6
hooks:
- id: pylint
args: [--rcfile=.pylintrc]
|