-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
39 lines (34 loc) · 1.01 KB
/
.pre-commit-config.yaml
File metadata and controls
39 lines (34 loc) · 1.01 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
minimum_pre_commit_version: "3.7.0"
default_install_hook_types: [pre-commit, commit-msg]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- id: check-json
- repo: local
hooks:
- id: ruff-check
name: ruff check
entry: uv run ruff check --fix
language: system
types_or: [python, pyi]
- id: ruff-format
name: ruff format
entry: uv run ruff format
language: system
types_or: [python, pyi]
- id: stub-parity
name: check stub parity
entry: uv run python scripts/check_stub_parity.py
language: system
pass_filenames: false
files: "^python/tryx/.*\\.(py|pyi)$"
- id: conventional-commit-message
name: conventional commit message
entry: uv run python scripts/check_commit_message.py
language: system
stages: [commit-msg]