-
Notifications
You must be signed in to change notification settings - Fork 7
/
.pre-commit-config.yaml
68 lines (60 loc) · 1.94 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.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"]
- id: check-json
# Remove MyPy: conflicts in python 3.9 with pytz
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.2
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: 24.8.0
hooks:
- id: black
args: ["-l 120"]
- repo: https://github.com/asottile/blacken-docs
rev: 1.18.0
hooks:
- id: blacken-docs
- repo: https://github.com/PyCQA/flake8
rev: "7.1.1"
hooks:
- id: flake8
- repo: https://github.com/kynan/nbstripout
rev: 0.7.1
hooks:
- id: nbstripout
- repo: https://github.com/charliermarsh/ruff-pre-commit
# Ruff version. To eventually replace flake8?
rev: "v0.6.4"
hooks:
- id: ruff
# Respect `exclude` and `extend-exclude` settings.
# args: ["--force-exclude", ] <-- apparently already provided somehow? Vai pyproject.toml? Not sure.