-
Notifications
You must be signed in to change notification settings - Fork 3
/
.pre-commit-config.yaml
120 lines (108 loc) · 2.86 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
---
default_language_version:
# ensures that we get same behavior on CI(s) as on local machines
python: python3.11
repos:
- repo: https://github.com/asottile/add-trailing-comma.git
rev: v2.4.0
hooks:
- id: add-trailing-comma
args:
- --py36-plus
stages: ["manual"]
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
name: Sort import statements using isort
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.0.0-alpha.9-for-vscode"
hooks:
- id: prettier
additional_dependencies:
- prettier
- prettier-plugin-toml
- prettier-plugin-jinja-template
- repo: https://github.com/psf/black.git
rev: 23.3.0
hooks:
- id: black
language_version: python3
- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v6.31.0
hooks:
- id: cspell
name: Spell check with cspell
- repo: https://github.com/Lucas-C/pre-commit-hooks.git
rev: v1.5.1
hooks:
- id: remove-tabs
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v4.4.0
hooks:
# Side-effects:
- id: trailing-whitespace
- id: check-merge-conflict
- id: end-of-file-fixer
- id: requirements-txt-fixer
- id: check-added-large-files
- id: fix-byte-order-marker
- id: check-case-conflict
- id: check-symlinks
- id: check-yaml
- id: detect-private-key
# Heavy checks:
- id: check-ast
- id: debug-statements
- repo: https://gitlab.com/bmares/check-json5
# Allow json comments, trailing commas
# https://github.com/pre-commit/pre-commit-hooks/issues/395
rev: v1.0.0
hooks:
- id: check-json5
- repo: https://github.com/codespell-project/codespell
rev: v2.2.4
hooks:
- id: codespell
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.31.0
hooks:
- id: yamllint
args:
- --strict
types: [file, yaml]
- repo: https://github.com/PyCQA/flake8.git
rev: 6.0.0
hooks:
- id: flake8
alias: flake8
language_version: python3
additional_dependencies:
- flake8-2020 >= 1.6.0
- flake8-isort >= 4.1.1
- darglint
- flake8-docstrings
- repo: https://github.com/pre-commit/mirrors-mypy.git
rev: v1.3.0
hooks:
- id: mypy
additional_dependencies:
- pytest
- types-PyYAML
- types-waitress
- types-Flask
- repo: https://github.com/pycqa/pylint.git
rev: v3.0.0a6
hooks:
- id: pylint
args:
- src/
additional_dependencies:
- cmarkgfm
- flask
- pillow
- pytest
- python-magic
- python-frontmatter
- waitress
pass_filenames: false