-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
47 lines (47 loc) · 1.41 KB
/
.pre-commit-config.yaml
File metadata and controls
47 lines (47 loc) · 1.41 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
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).
- id: pixi-ruff-format
name: "Run ruff format through pixi"
entry: pixi run fmt-ruff
language: system
types: [python]
- id: pixi-taplo-format
name: "Run taplo format through pixi"
entry: pixi run fmt-taplo""
language: system
types: [toml]
- id: pixi-ruff
name: Run ruff check through pixi
entry: pixi run check-ruff --fix
language: system
types: [python]
- id: pixi-typos
name: "Run typos through pixi"
entry: pixi run check-typos
language: system
- id: pixi-mypy
name: "Run mypy through pixi"
entry: pixi run check-mypy
language: system
types: [python]
pass_filenames: false
require_serial: true