-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
90 lines (79 loc) · 2.43 KB
/
.pre-commit-config.yaml
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
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"]
entry: bash -c 'nbqa flake8 "$@"; git add -u' --
- id: nbqa-mypy
additional_dependencies: [mypy==1.7.1]
entry: bash -c 'nbqa mypy "$@"; git add -u' --
- id: nbqa-pyupgrade
additional_dependencies: [pyupgrade==3.17.0]
- repo: https://github.com/adamchainz/blacken-docs
rev: 1.18.0
hooks:
- id: blacken-docs
additional_dependencies:
- black==22.12.0
- 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.13.0 # Use the latest version available
hooks:
- id: cfn-lint
files: cloudformation/.*\.(json|yml|yaml)$
- repo: https://github.com/asottile/pyupgrade
rev: v3.17.0
hooks:
- id: pyupgrade
args: [--py310-plus]
entry: bash -c 'pyupgrade "$@"; git add -u' --
- 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.7
hooks:
- id: pylint
args: [--rcfile=.pylintrc]