-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
73 lines (67 loc) · 2.07 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
default_stages: [pre-commit, pre-push]
default_language_version:
python: python3.11
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-merge-conflict
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: check-docstring-first
- id: check-toml
- id: check-yaml
- id: check-json
- id: pretty-format-json
args: [--autofix, --no-sort-keys]
exclude: tests(/\w*)*/functional/|tests/input|tests(/.*)+/conftest.py|doc/data/messages|tests(/\w*)*data/|Pipfile.lock|output/.*
#- repo: https://github.com/asottile/reorder-python-imports
# rev: v3.13.0
# hooks:
# - id: reorder-python-imports
# args: [--py39-plus, --add-import, "from __future__ import annotations"]
# exclude: tests(/\w*)*/functional/|tests/input|tests(/.*)+/conftest.py|doc/data/messages|tests(/\w*)*data/
- repo: https://github.com/psf/black
rev: 24.8.0
hooks:
- id: black
args: [-t, py310, -t, py311, -t, py312]
exclude: tests(/\w*)*/functional/|tests/input|tests(/.*)+/conftest.py|doc/data/messages|tests(/\w*)*data/|output/.*
#- repo: local
# hooks:
# - id: mypy
# name: mypy
# entry: make
# language: system
# pass_filenames: false
# args:
# [typecheck]
# exclude: tests(/\w*)*/functional/|tests/input|tests(/\w*)*data/|doc/
#- repo: https://github.com/RobertCraigie/pyright-python
# rev: v1.1.376
# hooks:
# - id: pyright
- repo: local
hooks:
- id: pyright
name: pyright
entry: make
language: system
pass_filenames: false
args:
[typecheck]
exclude: tests(/\w*)*/functional/|tests/input|tests(/\w*)*data/|doc/|output/.*
- repo: local
hooks:
- id: pylint
name: pylint
entry: make
language: system
pass_filenames: false
args:
[lint]
exclude: tests(/\w*)*/functional/|tests/input|tests(/\w*)*data/|doc/|output/.*