-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
46 lines (40 loc) · 1014 Bytes
/
.pre-commit-config.yaml
File metadata and controls
46 lines (40 loc) · 1014 Bytes
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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-ast
language_version: python3.12
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
exclude: "^k8s/"
- id: check-toml
- id: no-commit-to-branch
args: [--branch, main, --branch, master]
- repo: https://github.com/asottile/add-trailing-comma
rev: v3.1.0
hooks:
- id: add-trailing-comma
- repo: https://github.com/asottile/pyupgrade
rev: v3.17.0
hooks:
- id: pyupgrade
args: ["--py312-plus"]
- repo: local
hooks:
- id: format
name: format
entry: uv run ruff format
require_serial: true
language: system
types: [python]
- repo: local
hooks:
- id: mypy
name: Validate types with MyPy
entry: uv run mypy
language: system
types: [python]
pass_filenames: false
args:
- "src"