This repository was archived by the owner on Apr 19, 2026. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
69 lines (64 loc) · 1.9 KB
/
.pre-commit-config.yaml
File metadata and controls
69 lines (64 loc) · 1.9 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
---
# Local pre-commit config that mirrors global but excludes test files
repos:
# Python formatting and linting
- repo: https://github.com/psf/black.git
rev: 25.1.0
hooks:
- id: black
name: "Python Formatter (black)"
args: [--quiet]
verbose: true
exclude: ^tests/(auto-fixable|non-fixable)/
- repo: https://github.com/PyCQA/flake8.git
rev: 7.3.0
hooks:
- id: flake8
name: "Python Lint (flake8)"
additional_dependencies: [flake8-bugbear]
exclude: ^tests/(auto-fixable|non-fixable)/
# Shell linting and formatting using global script
- repo: local
hooks:
- id: shell-lint-fix
name: Shell Scripts Lint & Auto-Fix with Summary
entry: /Users/andrewrich/.config/git/hooks/lint-shell.sh
language: system
types: [shell]
pass_filenames: true
verbose: true
exclude: ^tests/(auto-fixable|non-fixable)/
# YAML linting
- repo: local
hooks:
- id: yamllint
name: "YAML Lint (yamllint)"
entry: yamllint
language: system
types: [yaml]
pass_filenames: true
verbose: true
exclude: ^tests/(auto-fixable|non-fixable)/
# HTML validation via tidy
- repo: local
hooks:
- id: html-tidy
name: "HTML Validation (tidy)"
entry: tidy -q -e
language: system
types: [html]
pass_filenames: true
verbose: true
exclude: ^tests/(auto-fixable|non-fixable)/
# Markdown linting
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.45.0
hooks:
- id: markdownlint
name: markdownlint (fix)
entry: markdownlint --fix
language: node
types: [markdown]
verbose: true
args: ["--config", "/Users/andrewrich/.config/markdownlint-cli/.markdownlint.json"]
exclude: ^tests/(auto-fixable|non-fixable)/