forked from redai-studio/Relax
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
74 lines (73 loc) · 2.14 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
74 lines (73 loc) · 2.14 KB
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
exclude: |
(?x)^(
transfer_queue/.*
)$
repos:
# Common hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
- id: check-merge-conflict
args: ['--assume-in-merge']
- id: check-symlinks
- id: detect-private-key
- id: end-of-file-fixer
- id: debug-statements
- id: trailing-whitespace
types_or: [python, yaml, json, shell, c, proto]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.9
hooks:
- id: ruff-check
args: [--fix]
- id: ruff-format
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.9
hooks:
- id: mdformat
args: ["--number"]
additional_dependencies:
- mdformat-openmmlab
- mdformat_frontmatter
- linkify-it-py
exclude: |
(?x)^(
skills/.* | .opencode/.* | docs/.*
)$
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v15.0.6
hooks:
- id: clang-format
- repo: local
hooks:
- id: docformatter
name: docformatter
entry: python .pre-commit-hooks/docformatter_compat.py --in-place --wrap-descriptions 79
language: python
types: [python]
additional_dependencies: ["docformatter==1.3.1"]
- id: check-conflict-markers
name: check-conflict-markers
entry: python .pre-commit-hooks/check_conflict_markers.py
language: python
language_version: python3
types: [text]
exclude: |
(?x)^(
versioneer\.py
)$
- id: format-ascii-boxes
name: format-ascii-boxes
entry: python .pre-commit-hooks/format_ascii_boxes.py
language: python
language_version: python3
files: \.md$
- id: gitleaks
name: gitleaks
entry: python .pre-commit-hooks/gitleaks_tracked.py
language: python
language_version: python3
additional_dependencies: ["nogoo9-gitleaks==8.30.1"]
always_run: true
pass_filenames: false