-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
72 lines (65 loc) · 2.11 KB
/
.pre-commit-config.yaml
File metadata and controls
72 lines (65 loc) · 2.11 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
# Global pre-commit configuration for dotfiles repository
# This file configures pre-commit hooks that will run before each commit
repos:
# GitGuardian secret scanning
- repo: https://github.com/GitGuardian/ggshield
rev: v1.25.0
hooks:
- id: ggshield
name: GitGuardian Secret Scan
description: Scan for secrets and sensitive data
entry: ggshield secret scan pre-commit
language: system
pass_filenames: false
always_run: true
# Commitizen for standardized commit messages
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.20.0
hooks:
- id: commitizen
name: Commitizen
description: Enforce conventional commit format
stages: [commit-msg]
additional_dependencies: [commitizen]
# Trailing whitespace and end-of-file fixes
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
name: Trailing Whitespace
description: Remove trailing whitespace
- id: end-of-file-fixer
name: End of File Fixer
description: Ensure files end with a newline
- id: check-yaml
name: Check YAML
description: Check YAML syntax
- id: check-json
name: Check JSON
description: Check JSON syntax
- id: check-merge-conflict
name: Check Merge Conflicts
description: Check for merge conflict markers
# Shell script linting
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.10.0
hooks:
- id: shellcheck
name: ShellCheck
description: Lint shell scripts
args: [--severity=warning]
stages: [manual] # Only run manually, not on every commit
# Markdown linting
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.38.0
hooks:
- id: markdownlint
name: Markdown Lint
description: Lint markdown files
args: [--fix]
stages: [manual] # Only run manually, not on every commit
# Global settings
default_language_version:
python: python3
# Hook execution order
fail_fast: false