forked from FreeRTOS/iot-reference-stm32u5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
62 lines (55 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
62
# 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: 38b88246ccc552bffaaf54259d064beeee434539 # v4.0.1
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: ae2c0758c9e61a385df9700dc9c231bf54887041 # 22.3.0
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: c6e0d27593a45342ffa96a18bba708a5aab32fdf # 3.9.2
hooks:
- id: flake8
additional_dependencies: [flake8-bugbear]
- repo: https://github.com/timothycrosley/isort
rev: a6222a8a125ec719724e628a5d3d0d5c60923281 # 5.8.0
hooks:
- id: isort
- repo: https://github.com/pre-commit/mirrors-mypy
rev: b84ce099a2fd3c5216b6ccf3fd176c3828b075fb # v0.812
hooks:
- id: mypy
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 7cc5848088fd8412905ab79feea6c8edc3ac76c6 # 2.1.5
hooks:
- id: forbid-binary
# - id: git-dirty
# - id: markdownlint
# - id: protect-first-parent
- id: shellcheck