-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.pre-commit-config.yaml
65 lines (57 loc) · 1.76 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: check-ast
- id: check-yaml
- id: check-toml
- id: check-byte-order-marker
- id: check-case-conflict
- id: check-docstring-first
- id: debug-statements
- id: detect-private-key
- id: detect-aws-credentials
args: [--allow-missing-credentials]
- id: forbid-new-submodules
- id: end-of-file-fixer
- id: check-executables-have-shebangs
- id: check-added-large-files
args: ["--maxkb=5000"]
- id: check-merge-conflict
- id: mixed-line-ending
- id: name-tests-test
args: ["--django"]
# Remove MyPy: conflicts in python 3.9 with pytz
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.15.0
hooks:
- id: mypy
args: ["--ignore-missing-imports", "--check-untyped-defs"]
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.10.1
hooks:
- id: isort
args: ["--profile", "black"]
- repo: https://github.com/psf/black
rev: 25.1.0
hooks:
- id: black
args: [ "--line-length", "120"]
- repo: https://github.com/asottile/blacken-docs
rev: 1.19.1
hooks:
- id: blacken-docs
- repo: https://github.com/PyCQA/flake8
rev: "7.1.2"
hooks:
- id: flake8
- repo: https://github.com/kynan/nbstripout
rev: 0.8.1
hooks:
- id: nbstripout
- repo: https://github.com/charliermarsh/ruff-pre-commit
# Ruff version. To eventually replace flake8?
rev: "v0.9.9"
hooks:
- id: ruff