-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
38 lines (38 loc) · 1.19 KB
/
.pre-commit-config.yaml
File metadata and controls
38 lines (38 loc) · 1.19 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: local
hooks:
- id: check-linting
name: check-linting
entry: uv run --frozen --group dev ruff check
language: system
types: [file, python]
stages: [pre-push]
pass_filenames: false
- id: check-formatting
name: check-formatting
entry: uv run --frozen --group dev ruff format --check
language: system
types: [file, python]
stages: [pre-push]
pass_filenames: false
- id: check-typing
name: check-typing
entry: uv run --frozen --group dev mypy .
language: system
types: [file, python]
stages: [pre-push]
pass_filenames: false
- id: uv-check # `pyproject.toml` と `uv.lock` が整合する
name: uv-check
entry: uv lock --check
language: system
stages: [pre-push]
pass_filenames: false
- id: update-licenses
name: update-licenses
entry: uv run --frozen --group dev task update-licenses
language: system
stages: [pre-push]
pass_filenames: false