-
Notifications
You must be signed in to change notification settings - Fork 3
/
.pre-commit-config.yaml
37 lines (37 loc) · 1.01 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
exclude: ^.pixi
repos:
- repo: local
hooks:
# ensure pixi environments are up to date
# workaround for https://github.com/prefix-dev/pixi/issues/1482
- id: pixi-install
name: pixi-install
entry: pixi install -e default
language: system
always_run: true
require_serial: true
pass_filenames: false
# typstyle
- id: typstyle
name: typstyle
entry: pixi run typstyle -i
language: system
files: \.typ$
# pre-commit-hooks
- id: trailing-whitespace-fixer
name: trailing-whitespace-fixer
entry: pixi run trailing-whitespace-fixer
language: system
types: [text]
- id: end-of-file-fixer
name: end-of-file-fixer
entry: pixi run end-of-file-fixer
language: system
types: [text]
# typos
- id: typos
name: typos
entry: pixi run typos --force-exclude
language: system
types: [text]
require_serial: true