-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
64 lines (62 loc) · 1.6 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
64 lines (62 loc) · 1.6 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
58
59
60
61
62
63
64
# https://pre-commit.com/
default_stages: [pre-commit, pre-push]
default_language_version:
python: python3.13
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-ast
- id: check-json
- id: pretty-format-json
args: [--autofix, --indent=4, --no-sort-keys]
- id: check-toml
- id: check-xml
- id: end-of-file-fixer
always_run: true
- id: check-docstring-first
- id: trailing-whitespace
exclude: .md$
always_run: true
- id: check-added-large-files
exclude: data/
- id: detect-private-key
always_run: true
- repo: https://github.com/ComPWA/taplo-pre-commit # TOML formatter
rev: v0.9.3
hooks:
- id: taplo-format
- repo: https://github.com/bwhmather/ssort
rev: 0.17.0
hooks:
- id: ssort
entry: ssort
files: ^src/.*\.py$
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.16.1
hooks:
# Run the linter.
- id: ruff-check
files: ^src/.*\.py$
args: [--fix]
# Run the formatter.
- id: ruff-format
files: ^src/.*\.py$
- repo: local
hooks:
- id: ty-check
name: ty
language: system
entry: uv run ty check
files: ^src/.*\.py$
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.12.1
hooks:
- id: uv-lock
- repo: https://github.com/jag-k/pydantic-settings-export
rev: v1.1.3
hooks:
- id: pydantic-settings-export
files: ^src/config\.py$
additional_dependencies:
- logfire