-
-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
95 lines (95 loc) · 2.83 KB
/
.pre-commit-config.yaml
File metadata and controls
95 lines (95 loc) · 2.83 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
---
ci:
autofix_commit_msg: 'style: auto fixes from pre-commit hooks'
autoupdate_commit_msg: 'chore: update pre-commit hook versions'
skip: [validate-rules]
default_language_version:
python: python3.13
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-json
- id: check-toml
- id: end-of-file-fixer
- id: trailing-whitespace
exclude: \.md$
# - repo: https://github.com/renovatebot/pre-commit-hooks
# rev: 42.6.1
# hooks:
# - id: renovate-config-validator
# args: [--strict]
# files: .*\\.json5$
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.25
hooks:
- id: validate-pyproject
additional_dependencies: ['validate-pyproject-schema-store[all]']
- repo: https://github.com/lyz-code/yamlfix
rev: 1.19.1
hooks:
- id: yamlfix
exclude: \.(commitlintrc|pre-commit-hooks)\.yaml$|docker-compose.*\.yml$
- repo: https://github.com/adrienverge/yamllint
rev: v1.38.0
hooks:
- id: yamllint
exclude: compose.*\.yaml$
args: [-c=.yamllint.yml]
- repo: https://github.com/rhysd/actionlint
rev: v1.7.10
hooks:
- id: actionlint
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.47.0
hooks:
- id: markdownlint-fix
- repo: https://github.com/asottile/add-trailing-comma
rev: v4.0.0
hooks:
- id: add-trailing-comma
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.0
hooks:
- id: ruff-check
args: [--fix]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.0
hooks:
- id: ruff-format
- repo: https://github.com/jsh9/pydoclint
rev: 0.8.3
hooks:
- id: pydoclint
args: [--config=pyproject.toml]
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.11.0.1
hooks:
- id: shellcheck
- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.12.0-2
hooks:
- id: shfmt
args: [-ln, bash, -i, '2', -ci, -bn, -sr, -kp, -s]
- repo: https://github.com/gitleaks/gitleaks
rev: v8.30.0
hooks:
- id: gitleaks
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.24.0
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies:
- '@commitlint/cli'
- '@commitlint/config-conventional'
- repo: local
hooks:
- id: validate-rules
name: Validate Rules & Commands
entry: uv run ai validate-rules
language: system
args: [--rules-dir, .cursor/rules, --commands-dir, .cursor/commands]
files: \.cursor/(rules|commands)/.*(\.mdc|\.md)$
pass_filenames: false
exclude: ^(\.archive/|.*typings/|node_modules/|\.venv/|\.kiro/|src/tux/database/migrations/versions/).*$