-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
50 lines (50 loc) · 1.36 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
50 lines (50 loc) · 1.36 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:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/gitleaks/gitleaks
rev: v8.27.2
hooks:
- id: gitleaks
- repo: https://github.com/JohnnyMorganz/StyLua
rev: v2.1.0
hooks:
- id: stylua-system
args: [--config-path, .stylua.toml]
- repo: local
hooks:
- id: ghostty-validate-config
name: ghostty validate config
entry: ghostty +validate-config --config-file=ghostty/.config/ghostty/config
language: system
files: ^ghostty/.config/ghostty/config$
pass_filenames: false
- id: bash-syntax
name: bash syntax check
entry: bash -n
language: system
types: [shell]
- id: shfmt
name: shfmt
entry: shfmt -d -i 4
language: system
types: [shell]
- id: ruff-format
name: ruff format
entry: uvx ruff format
language: system
types: [python]
- id: ruff-check
name: ruff check
entry: uvx ruff check
language: system
types: [python]
- id: ty-check
name: ty check
entry: uvx ty check
language: system
types: [python]
exclude: ^(_archive/|python/.ipython/|qutebrowser/|ranger/)