-
Notifications
You must be signed in to change notification settings - Fork 29
/
.pre-commit-config.yaml
61 lines (54 loc) · 1.71 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
exclude: |
(?x)^(
.*\.cproject|
.*\.project|
.*\.xml
)$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: f71fa2c1f9cf5cb705f73dffe4b21f7c61470ba9 # v4.4.0
hooks:
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: end-of-file-fixer
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-ast
- id: check-json
- id: check-yaml
- id: check-toml
- id: check-xml
- id: check-symlinks
- id: destroyed-symlinks
- id: detect-private-key
- id: fix-byte-order-marker
- id: mixed-line-ending
name: "Normalize line endings"
args : [--fix=lf]
- repo: https://github.com/ambv/black
rev: bf7a16254ec96b084a6caf3d435ec18f0f245cc7 # 23.3.0
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: b9a7794c4f425ef8419081e6993f99419cc667ea # 6.0.0
hooks:
- id: flake8
additional_dependencies: [flake8-bugbear]
- repo: https://github.com/timothycrosley/isort
rev: e44834b7b294701f596c9118d6c370f86671a50d # 5.12.0
hooks:
- id: isort
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 6e63c9e9c65e1df04465cdcda0f2490e89291f58 # v1.4.1
hooks:
- id: mypy
additional_dependencies: [types-requests]
args: [--ignore-missing-imports]
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 38980559e3a605691d6579f96222c30778e5a69e # 3.0.0
hooks:
- id: forbid-binary
- id: shellcheck