-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
42 lines (42 loc) · 1.17 KB
/
.pre-commit-config.yaml
File metadata and controls
42 lines (42 loc) · 1.17 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
minimum_pre_commit_version: '4.0.0'
default_install_hook_types:
- pre-commit
- commit-msg
repos:
- repo: local
hooks:
- id: move-type-imports
name: move type-only imports under TYPE_CHECKING
entry: poetry run python scripts/move_type_imports.py --mode fix --only-changed
language: system
pass_filenames: false
stages: [pre-commit]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.11.11"
hooks:
- id: ruff-check
args: [ --fix ]
stages: [pre-commit]
- id: ruff-format
stages: [pre-commit]
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.22.0
hooks:
- id: commitlint
stages: [commit-msg]
verbose: true
entry: bash -c 'commitlint --edit || exit 0'
- repo: https://github.com/zizmorcore/zizmor-pre-commit
# Zizmor version.
rev: v1.19.0
hooks:
- id: zizmor
stages: [pre-commit]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0
hooks:
- id: mypy
name: mypy (type signatures)
pass_filenames: false
args:
- --config-file=pyproject.toml