-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
58 lines (53 loc) · 1.41 KB
/
.pre-commit-config.yaml
File metadata and controls
58 lines (53 loc) · 1.41 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-case-conflict
- id: check-merge-conflict
- id: trailing-whitespace
- id: check-ast
exclude: (tests/data/__init__.py)
- id: check-added-large-files
- id: check-toml
- id: check-json
- id: check-yaml
- id: end-of-file-fixer
exclude: DEPS_LICENSES.md
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.10
hooks:
- id: ruff-check
types_or: [python, pyi]
args: [--fix]
exclude: (/test_|tests/)
- id: ruff-check
types_or: [python, pyi]
args: ["--select", "I", "--fix"]
exclude: (tests/data/)
- id: ruff-format
types_or: [python, pyi]
exclude: (tests/data/)
- repo: https://github.com/PyCQA/bandit
rev: 1.8.6
hooks:
- id: bandit
args: [-r]
exclude: (/test_|tests/)
- repo: https://github.com/asottile/pyupgrade
rev: v3.20.0
hooks:
- id: pyupgrade
args: [--py313-plus]
- repo: local
hooks:
- id: ty
name: ty type checker
entry: uv run ty check
language: system
types: [python]
pass_filenames: false
- id: licensecheck
name: licensecheck
entry: uv run licensecheck -r pyproject.toml
language: system
files: pyproject\.toml$