-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
45 lines (45 loc) · 1.29 KB
/
.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
45
ci:
skip: [hatch-test, taplo-lint]
repos:
- repo: https://github.com/ComPWA/mirrors-taplo
rev: "v0.9.3"
hooks:
- id: taplo-format
- id: taplo-lint
- repo: https://github.com/asottile/reorder-python-imports
rev: v3.14.0
hooks:
- id: reorder-python-imports
args: [--py37-plus, --add-import, "from __future__ import annotations"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.1
hooks:
- id: ruff
types_or: [python, pyi, jupyter]
args: [--fix, --unsafe-fixes]
- id: ruff-format
types_or: [python, pyi, jupyter]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: debug-statements
- id: name-tests-test
- id: requirements-txt-fixer
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0
hooks:
- id: mypy
additional_dependencies:
- types-requests
- repo: local
hooks:
- id: hatch-test
name: hatch-test
entry: env HATCH_ENV_TYPE_VIRTUAL_PATH= hatch test --parallel --all
language: python
additional_dependencies: [hatch>=1.12.0]
pass_filenames: false
always_run: true