-
Notifications
You must be signed in to change notification settings - Fork 90
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
50 lines (44 loc) · 1.15 KB
/
.pre-commit-config.yaml
File metadata and controls
50 lines (44 loc) · 1.15 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
repos:
# Python linting & formatting
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.13
hooks:
- id: ruff-check
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
# Shell scripts
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1
hooks:
- id: shellcheck
args: [-x]
- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.11.0-1
hooks:
- id: shfmt
args: [-i, "2", -ci, -bn]
# GitHub Actions validation
- repo: https://github.com/rhysd/actionlint
rev: v1.7.10
hooks:
- id: actionlint
# YAML validation
- repo: https://github.com/adrienverge/yamllint
rev: v1.37.1
hooks:
- id: yamllint
args: [-c, .yamllint]
exclude: ^tests/
# File hygiene
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
exclude: ^tests/
- id: end-of-file-fixer
exclude: ^tests/
- id: check-added-large-files
args: [--maxkb=1000]
- id: check-merge-conflict
- id: check-toml
default_stages: [pre-commit, pre-push]