-
Notifications
You must be signed in to change notification settings - Fork 22
/
.pre-commit-config.yaml
63 lines (54 loc) · 1.36 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
default_stages: [commit, push]
ci:
autofix_prs: false
repos:
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
- id: codespell
args: [
"-w", # Write changes to files
"--skip",
"*.csv,*.bib,tests/books.py,*.ipynb,CHANGELOG.md",
# don't code output from notebooks
"-L",
"vise", # Ignore the Danish word 'vise'
]
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
hooks:
- id: pyupgrade
- repo: https://github.com/bwhmather/ssort
rev: 0.12.4
hooks:
- id: ssort
- repo: https://github.com/asottile/add-trailing-comma
rev: v3.1.0
hooks:
- id: add-trailing-comma
# - repo: https://github.com/PyCQA/docformatter
# rev: v1.6.0.rc1
# hooks:
# - id: docformatter
# args:
# [
# --in-place,
# --pre-summary-space,
# --wrap-descriptions,
# "80",
# --wrap-summaries,
# "80",
# ]
- repo: https://github.com/psf/black
rev: 24.2.0
hooks:
- id: black
#args: [--line-length, "88"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.1
hooks:
- id: ruff
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
hooks:
- id: mypy