-
Notifications
You must be signed in to change notification settings - Fork 521
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
67 lines (62 loc) · 1.81 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
67 lines (62 loc) · 1.81 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
65
66
67
ci:
autoupdate_schedule: monthly
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
- id: check-toml
- id: check-yaml
args: [--unsafe]
- id: end-of-file-fixer
files: tortoise/
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.9
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --show-fixes, tortoise/, examples/, tests/, conftest.py]
pass_filenames: false
- id: ruff-format
args: [tortoise/, examples/, tests/, conftest.py]
pass_filenames: false
- repo: https://github.com/codespell-project/codespell
rev: v2.4.2
hooks:
- id: codespell # See pyproject.toml for args
additional_dependencies:
- tomli
- repo: local
hooks:
- id: mypy
name: Check type hints by mypy
entry: uv run --frozen mypy
language: system
args: [tortoise/, examples/, tests/, conftest.py]
pass_filenames: false
groups: [check]
stages: [manual]
- id: bandit
name: Check security by bandit
entry: uv run --frozen bandit
language: system
args: [-c, pyproject.toml, -r, tortoise/, examples/, tests/, conftest.py]
pass_filenames: false
groups: [check]
stages: [manual]
- id: build
name: Build sdist by uv
entry: uv build
language: system
pass_filenames: false
groups: [check]
stages: [manual]
- id: twine
name: Check sdist by twine
entry: uv run --frozen twine check dist/*
language: system
pass_filenames: false
require_serial: true
priority: 20
groups: [check]
stages: [manual]