-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
44 lines (40 loc) · 1001 Bytes
/
.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
exclude: '.pixi/'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0 # this is optional, use `pre-commit autoupdate` to get the latest rev!
hooks:
- id: check-yaml
- id: check-toml
exclude: "{{cookiecutter.package_name}}/pyproject.toml"
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: local
hooks:
- id: ruff
name: ruff-format
stages: [pre-commit, pre-push]
language: system
entry: pixi run fmt
types: [python]
pass_filenames: false
- id: ruff
name: ruff-check
stages: [pre-commit, pre-push]
language: system
entry: pixi run lint
types: [python]
pass_filenames: false
- id: Mypy
name: mypy
stages: [pre-commit, pre-push]
language: system
entry: pixi run types
types: [python]
pass_filenames: false
- id: pytest
name: pytest
stages: [pre-commit, pre-push]
language: system
entry: pixi run test
types: [python]
pass_filenames: false