-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
63 lines (63 loc) · 1.94 KB
/
.pre-commit-config.yaml
File metadata and controls
63 lines (63 loc) · 1.94 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
---
repos:
- repo: local
hooks:
- id: ruff-check
name: 🐶 Ruff Linter
language: system
types: [python]
entry: uv run ruff check --fix
require_serial: true
stages: [pre-commit, pre-push, manual]
- id: ruff-format
name: 🐶 Ruff Formatter
language: system
types: [python]
entry: uv run ruff format
require_serial: true
stages: [pre-commit, pre-push, manual]
- id: check-ast
name: 🐍 Check Python AST
language: system
types: [python]
entry: uv run check-ast
- id: check-case-conflict
name: 🔠 Check for case conflicts
language: system
entry: uv run check-case-conflict
- id: check-docstring-first
name: ℹ️ Check docstring is first
language: system
types: [python]
entry: uv run check-docstring-first
- id: detect-private-key
name: 🕵️ Detect Private Keys
language: system
types: [text]
entry: uv run detect-private-key
- id: end-of-file-fixer
name: ⮐ Fix End of Files
language: system
types: [text]
entry: uv run end-of-file-fixer
stages: [pre-commit, pre-push, manual]
- id: no-commit-to-branch
name: 🛑 Don't commit to main branch
language: system
entry: uv run no-commit-to-branch
pass_filenames: false
always_run: true
args:
- --branch=main
- id: trailing-whitespace
name: ✄ Trim Trailing Whitespace
language: system
types: [text]
entry: uv run trailing-whitespace-fixer
stages: [pre-commit, pre-push, manual]
- id: rhfest
name: 🎉 Check RHFest
language: system
entry: docker
args: ["run", "--rm", "--pull=always", "-v", ".:/repo", "ghcr.io/rotorhazard/rhfest-action:latest"]
pass_filenames: false