This repository has been archived by the owner on May 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy path.pre-commit-config.yaml
101 lines (92 loc) · 2.39 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
default_language_version:
python: python3.9
ci:
autofix_commit_msg: |
ci: auto fixes from pre-commit.com hooks
autofix_prs: true
autoupdate_branch: "develop"
autoupdate_commit_msg: "ci: pre-commit autoupdate"
autoupdate_schedule: weekly
repos:
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v3.0.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args:
[
"add",
"ci",
"docs",
"feat",
"bug",
"fix",
"refactor",
"revert",
"test",
"security",
"perf",
"resolve",
"merge",
"maintain",
]
- repo: local
hooks:
- id: detect-banned-file-types
name: detect-banned-file-types
entry: sh ./scripts/detect_banned_file_types.sh
language: system
pass_filenames: false
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
exclude: "src/libs"
- id: end-of-file-fixer
exclude: "src/libs"
- id: check-yaml
- id: check-xml
- id: mixed-line-ending
args: ["--fix=lf"]
exclude: "src/libs"
- id: check-added-large-files
- id: check-ast
- id: check-builtin-literals
exclude: "src/libs"
- id: check-case-conflict
- id: check-docstring-first
exclude: "src/libs"
- id: check-merge-conflict
- id: debug-statements
- id: fix-byte-order-marker
- id: forbid-new-submodules
- id: forbid-submodules
- id: detect-private-key
- id: no-commit-to-branch
args: ["--branch=main"]
- repo: https://github.com/bwhmather/ssort
rev: v0.11.6
hooks:
- id: ssort
exclude: "workflow/src/libs"
- repo: https://github.com/psf/black
rev: 23.11.0
hooks:
- id: black
exclude: "workflow/src/libs"
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.1.7"
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.7.1
hooks:
- id: mypy
exclude: "workflow/src/libs"
- repo: https://github.com/PyCQA/bandit
rev: 1.7.6
hooks:
- id: bandit
exclude: "workflow/src/libs"
args: [-r]