-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
59 lines (54 loc) · 1.34 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-yaml
- id: check-toml
- id: check-symlinks
- id: trailing-whitespace
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-symlinks
- id: destroyed-symlinks
- id: debug-statements
- id: detect-private-key
# Formatting
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
- repo: https://github.com/asottile/blacken-docs
rev: 1.13.0
hooks:
- id: blacken-docs
# Linting
- repo: https://github.com/charliermarsh/ruff-pre-commit
# Ruff version.
rev: "v0.0.254"
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
# Lint any shell scripts
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.9.0.2
hooks:
- id: shellcheck
# Notebook QA
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.6.3
hooks:
- id: nbqa
- id: nbqa-black
- id: nbqa-check-ast
- id: nbqa-pyupgrade
- id: nbqa-ruff
- repo: https://github.com/kynan/nbstripout
rev: 0.6.1
hooks:
- id: nbstripout
- repo: https://github.com/pdm-project/pdm
rev: 2.7.4
hooks:
- id: pdm-lock-check