-
Notifications
You must be signed in to change notification settings - Fork 69
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
84 lines (69 loc) · 2.08 KB
/
.pre-commit-config.yaml
File metadata and controls
84 lines (69 loc) · 2.08 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
default_stages: [pre-commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: end-of-file-fixer
name: End of file fixer
description: "Ensure files end with a newline"
- id: check-json
name: Check JSON
description: "Check that JSON files are valid"
- id: check-toml
name: Check TOML
description: "Check that TOML files are valid"
- id: check-xml
name: Check XML
description: "Check that XML files are valid"
- id: check-yaml
name: Check YAML
description: "Check that YAML files are valid"
- id: detect-private-key
name: Detect private key
description: "Detect private keys in files"
- id: trailing-whitespace
name: Trailing whitespace
description: "Remove trailing whitespace from files"
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.8
hooks:
- id: ruff
name: Ruff check
description: "Run 'ruff check' for extremely fast Python linting"
args: [--fix]
- id: ruff-format
name: Ruff format
description: "Run 'ruff format' for extremely fast Python formatting"
- repo: local
hooks:
- id: ty
name: ty check
entry: uv run ty check
language: python
types: [python]
- repo: https://github.com/rhysd/actionlint
rev: v1.7.10
hooks:
- id: actionlint
- repo: https://github.com/hadolint/hadolint
rev: v2.12.0
hooks:
- id: hadolint
name: Lint Dockerfiles
description: Runs hadolint to lint Dockerfiles
language: system
types: ["dockerfile"]
entry: hadolint
- repo: https://github.com/sqlfluff/sqlfluff
rev: 3.5.0
hooks:
- id: sqlfluff-lint
name: SQLFluff Lint
description: "Lints sql files with `SQLFluff`"
types: [sql]
- id: sqlfluff-fix
name: SQLFluff Fix
description: "Fixes sql lint errors with `SQLFluff`"
types: [sql]
ci:
autoupdate_schedule: weekly