-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
55 lines (54 loc) · 1.71 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
55 lines (54 loc) · 1.71 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
50
51
52
53
54
55
fail_fast: true
exclude: ^private/
default_install_hook_types: [pre-commit, commit-msg]
repos:
- repo: local
hooks:
- id: insert-license
name: insert license header (python)
entry: apache/skywalking-eyes:0.8.0 -c .licenserc.yaml header fix
language: docker_image
pass_filenames: false
require_serial: true
always_run: true
- id: insert-license-notebooks
name: insert license header (notebooks)
entry: uv run python scripts/insert_license_notebooks.py
language: system
types: [jupyter]
- id: commitizen
name: conventional commit message
entry: uv run cz check --commit-msg-file
language: system
stages: [commit-msg]
- id: ruff-check
name: ruff check
entry: uv run ruff check .
language: system
pass_filenames: false
- id: ruff-format
name: ruff format
entry: uv run ruff format
language: system
types_or: [python, jupyter]
- id: ty-check
name: ty check
entry: task typecheck
language: system
pass_filenames: false
- id: typos
name: typos
entry: task typos
language: system
pass_filenames: false
- id: nbstripout
name: nbstripout
entry: uv run nbstripout
language: system
types: [jupyter]
- id: tests
name: tests with coverage
entry: env COVERAGE_FILE=/tmp/joint-client-python-pre-commit.coverage uv run pytest -q -n auto -p no:cacheprovider --cov=jointfm_client --cov-report=term-missing:skip-covered --cov-fail-under=90
language: system
pass_filenames: false
always_run: true