This repository has been archived by the owner on Jun 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
62 lines (54 loc) · 1.63 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
ci:
autofix_commit_msg: 'refactor: auto fixes from pre-commit hooks'
autoupdate_commit_msg: 'build(deps): update pre-commit hooks'
skip: [ pyproject-flake8, pyright, pyright-verify, pytest ]
repos:
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
stages: [ commit ]
- repo: https://github.com/aio-libs/sort-all
rev: v1.2.0
hooks:
- id: sort-all
name: sort-all
stages: [ commit ]
- repo: https://github.com/psf/black
rev: 23.12.1
hooks:
- id: black
stages: [ commit ]
- repo: https://github.com/csachs/pyproject-flake8
rev: v6.1.0
hooks:
- id: pyproject-flake8
name: flake8
alias: flake8
stages: [ commit ]
- repo: local
hooks:
# - id: mypy
# name: mypy
# entry: bash -c "pip install poetry && poetry install --with mypy && mypy"
# language: system
# pass_filenames: false
# stages: [ commit ]
- id: pyright
name: pyright
entry: bash -c "pip install poetry && poetry install --with pyright && pyright"
language: system
pass_filenames: false
stages: [ commit ]
- id: pyright-verify
name: pyright-verify
entry: bash -c "pip install poetry && poetry install --with pyright-verify && pyright --verifytypes valtypes"
language: system
pass_filenames: false
stages: [ commit ]
- id: pytest
name: pytest
entry: bash -c "pip install poetry && poetry install --with pytest && pytest"
language: system
pass_filenames: false
stages: [ commit ]