-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
47 lines (47 loc) · 1.28 KB
/
.pre-commit-config.yaml
File metadata and controls
47 lines (47 loc) · 1.28 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
default_language_version:
python: python3.11
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 'v5.0.0'
hooks:
- id: check-yaml
- id: check-xml
- 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.2.0'
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.12.3'
hooks:
- id: ruff
args: ["--fix", "--config", "./pyproject.toml"]
- id: ruff-format
args: ["--config", "./pyproject.toml"]
- repo: local
hooks:
- id: ty
name: ty check
entry: uvx ty check .
language: system
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.24.1
hooks:
- id: validate-pyproject
args: ["./pyproject.toml"]
- repo: https://github.com/astral-sh/uv-pre-commit
rev: '0.7.20'
hooks:
- id: uv-lock
args: ["--locked"]