-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
executable file
·47 lines (47 loc) · 1.31 KB
/
.pre-commit-config.yaml
File metadata and controls
executable file
·47 lines (47 loc) · 1.31 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
exclude: "^pixi.lock$"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
args: [--maxkb=8192]
- id: check-json
- id: check-merge-conflict
- id: check-toml
- id: check-xml
- id: check-yaml
args: [--allow-multiple-documents]
- id: end-of-file-fixer
exclude: "notebooks/.*\\.ipynb$"
- id: trailing-whitespace
exclude: "notebooks/.*\\.ipynb$"
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.6
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
exclude: "notebooks/.*\\.ipynb$"
- id: ruff-format
exclude: "notebooks/.*\\.ipynb$"
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
exclude: "notebooks/.*\\.ipynb$"
args: ["--skip=*.js,*.html,*.css"]
- repo: https://github.com/adrienverge/yamllint
rev: v1.35.1
hooks:
- id: yamllint
- repo: https://github.com/ComPWA/taplo-pre-commit
rev: v0.9.3
hooks:
- id: taplo-format
- repo: local
hooks:
- id: pixi-lock-check
name: pixi-lock-check
entry: bash -c "pixi lock --check"
stages: [pre-push]
language: system
pass_filenames: false