-
Notifications
You must be signed in to change notification settings - Fork 3
/
.pre-commit-config.yaml
69 lines (69 loc) · 1.95 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
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
- id: generate-col-ops
name: generate-col-ops
language: system
entry: pixi run python generate_col_ops.py
types: [python]
pass_filenames: false
# ruff
- id: ruff
name: ruff
entry: pixi run 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 ruff format --force-exclude
language: system
types_or: [python, pyi]
require_serial: true
# mypy
# - id: mypy
# name: mypy
# entry: pixi run mypy
# language: system
# types: [python]
# require_serial: true
# taplo
- id: taplo
name: taplo
entry: pixi run taplo format
language: system
types: [toml]
# 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]
- id: check-merge-conflict
name: check-merge-conflict
entry: pixi run check-merge-conflict --assume-in-merge
language: system
types: [text]
exclude: ".rst$"
# typos
- id: typos
name: typos
entry: pixi run typos --force-exclude
language: system
types: [text]
require_serial: true