-
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
57 lines (57 loc) · 1.57 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
57 lines (57 loc) · 1.57 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
56
57
default_language_version:
python: python3.11
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-yaml
- id: check-toml
- id: check-added-large-files
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-ast
- id: check-json
- id: check-merge-conflict
- id: no-commit-to-branch
args: ["--branch", "main"]
- id: debug-statements
language_version: python3
- repo: https://github.com/compilerla/conventional-pre-commit
rev: "v4.3.0"
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.24.1
hooks:
- id: validate-pyproject
args: ["./pyproject.toml", "client/pyproject.toml"]
- repo: local
hooks:
- id: uv-lock
name: uv-lock
entry: make lock
files: ^(uv\.lock|pyproject\.toml|uv\.toml)$
language: system
stages: [pre-push]
- id: ruff-lint
name: ruff-lint
entry: make ruff-lint-fix
pass_filenames: false
require_serial: true
language: system
stages: [pre-push]
- id: ruff-format
name: ruff-format
entry: make ruff-format-fix
pass_filenames: false
require_serial: true
language: system
stages: [pre-push]
- id: typing-check
name: check typing
entry: make typing-check
pass_filenames: false
require_serial: true
language: system
stages: [pre-push]