-
Notifications
You must be signed in to change notification settings - Fork 15
/
.pre-commit-config.yaml
54 lines (48 loc) · 1.3 KB
/
.pre-commit-config.yaml
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
default_language_version:
python: python3.9
default_install_hook_types: [pre-commit, commit-msg]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-added-large-files
- id: check-merge-conflict
- id: check-json
- id: check-toml
- id: check-yaml
args: [--unsafe]
- id: detect-private-key
- id: end-of-file-fixer
exclude: ^LICENSE|\.(html|csv|txt|svg)$
- id: pretty-format-json
args: [--autofix, --no-ensure-ascii, --no-sort-keys, --indent, "4"]
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
exclude: \.(html|svg)$
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.28.0
hooks:
- id: commitizen
- repo: local
hooks:
- id: lint
name: lint
entry: ruff check --fix
language: python
types_or: [python, pyi]
- id: format
name: format
entry: ruff format
language: python
types_or: [python, pyi]
- id: typecheck
name: typecheck
entry: mypy
args:
[
--ignore-missing-imports,
--scripts-are-modules,
--check-untyped-defs,
]
language: python
types_or: [python, pyi]