-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
48 lines (48 loc) · 1.39 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
exclude: (^.pixi/|.snap|^files/)
repos:
- repo: local
hooks:
- id: pixi-install
name: pixi-install
entry: pixi install -e fmt
language: system
always_run: true
require_serial: true
pass_filenames: false
# pre-commit-hooks
- id: check-yaml
name: check-yaml
entry: pixi run -e fmt check-yaml
language: system
types: [yaml]
- id: end-of-file
name: end-of-file
entry: pixi run -e fmt end-of-file-fixer
language: system
types: [text]
stages: [commit, push, manual]
- id: trailing-whitespace
name: trailing-whitespace
entry: pixi run -e fmt trailing-whitespace-fixer
language: system
types: [text]
stages: [commit, push, manual]
# Use ruff for python examples
- id: ruff
name: ruff
entry: pixi run -e fmt ruff check --fix --exit-non-zero-on-fix --force-exclude
language: system
types_or: [python, pyi]
require_serial: true
- id: ruff-format
name: ruff-format
entry: pixi run -e fmt ruff format --force-exclude
language: system
types_or: [python, pyi]
require_serial: true
# typos
- id: typos
name: typos
entry: pixi run -e fmt typos --write-changes --force-exclude
language: system
types: [text]