-
Notifications
You must be signed in to change notification settings - Fork 7
/
.pre-commit-config.yaml
63 lines (63 loc) · 1.84 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
minimum_pre_commit_version: "2.9.0"
exclude: "^(build|example)"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
- id: check-byte-order-marker
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: check-toml
- id: check-vcs-permalinks
- id: check-xml
- id: check-yaml
- id: destroyed-symlinks
- id: detect-private-key
- id: fix-byte-order-marker
- id: requirements-txt-fixer
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.0.1"
hooks:
- id: prettier
exclude: "^(tests/data/golden|src/talondoc/_cache_builtin/resources|)s"
- repo: https://github.com/ikamensh/flynt/
rev: "1.0.1"
hooks:
- id: flynt
- repo: https://github.com/pycqa/isort
rev: "5.12.0"
hooks:
- id: isort
args: ["--profile=black", "--filter-files", "--line-width=88"]
- repo: https://github.com/psf/black
rev: "23.7.0"
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.4.1"
hooks:
- id: mypy
args: ["--config-file", "pyproject.toml"]
additional_dependencies:
[
"types_click",
"types_docutils",
"types_editdistance",
"types_jinja2",
"types_pytz",
"types_setuptools",
]
exclude: "^src/talondoc/_compat_singledispatchmethod\\.py$"
- repo: https://github.com/wenkokke/talonfmt
rev: 1.10.1
hooks:
- id: talonfmt
args: ["--in-place", "--max-line-width=88"]