-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
80 lines (78 loc) · 2.46 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
80 lines (78 loc) · 2.46 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: mixed-line-ending
args: ['--fix=lf']
- id: check-yaml
- id: check-json
- id: check-toml
- id: check-merge-conflict
- id: check-added-large-files
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.33.0
hooks:
- id: check-github-workflows
- repo: local
hooks:
# Running common tools though pixi so that they are in sync with the ones used
# by our editors (and does not duplicate downloads).
# Formatters
- id: pixi-ruff-format
name: "Run ruff format through pixi"
entry: pixi run fmt-ruff
language: system
types: [python]
exclude: "arbalister/_version.py"
- id: pixi-taplo-format
name: "Run taplo format through pixi"
entry: pixi run fmt-taplo
language: system
types: [toml]
- id: pixi-yamlfmt-format
name: "Run yamfmt format through pixi"
entry: pixi run fmt-yamlfmt
language: system
types: [yaml]
pass_filenames: false
require_serial: true
- id: pixi-biome-format
name: "Run Biome format through pixi"
entry: pixi run fmt-biome""
language: system
types_or: [javascript, jsx, ts, tsx, json, css]
exclude: "(^|/)package\\.json$"
# Linters
- id: pixi-biome
name: Run biome check through pixi
entry: pixi run check-biome
language: system
types_or: [javascript, jsx, ts, tsx, json]
exclude: "(^|/)package\\.json$"
- id: pixi-typescript
name: Run typescript checks through pixi
entry: pixi run check-typescript
language: system
types_or: [ts, tsx]
pass_filenames: false
require_serial: true
- id: pixi-ruff
name: Run ruff check through pixi
entry: pixi run check-ruff
language: system
types: [python]
exclude: "^.*/jupyter_server_test_config\\.py$|^arbalister/_version.py$"
- id: pixi-typos
name: "Run typos through pixi"
entry: pixi run check-typos
language: system
exclude: "^.*\\.png"
- id: pixi-mypy
name: "Run mypy through pixi"
entry: pixi run check-mypy
language: system
types: [python]
pass_filenames: false
require_serial: true