-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
43 lines (38 loc) · 920 Bytes
/
.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
---
repos:
# common code style checkers
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
- id: check-added-large-files
- id: end-of-file-fixer
- id: check-yaml
# check poetry
- repo: https://github.com/python-poetry/poetry
rev: 1.5.1
hooks:
- id: poetry-check
# python static type checker
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.4.1
hooks:
- id: mypy
additional_dependencies:
- .[poetry-group-dev]
# python import sorter
- repo: https://github.com/pycqa/isort
rev: 5.11.5
hooks:
- id: isort
name: isort
args: [--profile=black]
# python code formatter
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
# python style ckecker
- repo: https://github.com/PyCQA/flake8
rev: 3.7.9
hooks:
- id: flake8