-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
52 lines (52 loc) · 1.65 KB
/
.pre-commit-config.yaml
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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
exclude: (^.pixi/|.snap|.magic)
repos:
- repo: local
hooks:
- id: check-yaml
name: Check YAML
entry: pixi run --environment=lint check-yaml
language: system
types: [yaml]
stages: [pre-commit, manual]
- id: end-of-file
name: Check end-of-file
entry: pixi run --environment=lint end-of-file-fixer
language: system
types: [text]
stages: [pre-commit, manual]
- id: trailing-whitespace
name: Fix trailing whitespace
entry: pixi run --environment=lint trailing-whitespace-fixer
language: system
types: [text]
stages: [pre-commit, manual]
- id: ruff
name: Ruff lint
entry: pixi run --environment=lint ruff-lint
language: system
types_or: [python, pyi]
require_serial: true
stages: [pre-commit, manual]
- id: ruff-format
name: Ruff format
entry: pixi run --environment=lint ruff-format
language: system
types_or: [python, pyi]
require_serial: true
stages: [pre-commit, manual]
- id: shellcheck
name: Check shell scripts
entry: pixi run --environment=lint shellcheck
language: system
types: [shell]
stages: [pre-commit, manual]
# GitHub Actions
- id: actionlint
name: Lint GitHub Actions workflow files
language: system
entry: pixi run --environment=lint actionlint
types: [yaml]
files: ^\.github/workflows/
stages: [pre-commit, manual]