-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
executable file
·49 lines (48 loc) · 1.34 KB
/
.pre-commit-config.yaml
File metadata and controls
executable file
·49 lines (48 loc) · 1.34 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
default_stages: [pre-commit, pre-push]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-yaml
stages: [pre-commit]
- id: check-toml
stages: [pre-commit]
- id: end-of-file-fixer
stages: [pre-commit]
- id: trailing-whitespace
stages: [pre-commit]
- id: requirements-txt-fixer
stages: [pre-commit]
- id: check-added-large-files
stages: [pre-commit]
args: ["--maxkb=50000"]
- id: check-case-conflict
stages: [pre-commit]
- id: mixed-line-ending
stages: [pre-commit]
- id: no-commit-to-branch
args: [--branch=main]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.13.2
hooks:
- id: ruff-check
args: [--select, "I,RUF022", --fix, --exit-non-zero-on-fix]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.18.2"
hooks:
- id: mypy
stages: [pre-commit]
language: system
pass_filenames: false
args: [-p, spatiomic]
- repo: local
hooks:
- id: unittests
stages: [pre-push]
name: unittests
entry: uv run pytest --maxfail=10 -m "not gpu"
language: system
types: [python]
pass_filenames: false
exclude: ^(?!(main)$).*