-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
54 lines (51 loc) · 1.4 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_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: 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: format
name: format
entry: make
language: system
pass_filenames: false
args:
[format]
exclude: tests(/\w*)*/functional/|tests/input|tests(/\w*)*data/|doc/|output/.*
- repo: local
hooks:
- id: lint
name: lint
entry: make
language: system
pass_filenames: false
args:
[lint]
exclude: tests(/\w*)*/functional/|tests/input|tests(/\w*)*data/|doc/|output/.*