-
Notifications
You must be signed in to change notification settings - Fork 31
/
.pre-commit-config.yaml
54 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
# See https://pre-commit.com for more information
repos:
- repo: https://github.com/PyCQA/flake8
rev: '6.1.0'
hooks:
- id: flake8
# Required to make flake8 read from pyproject.toml for now :(
additional_dependencies: ["flake8-pyproject"]
- repo: https://github.com/psf/black
rev: 23.12.0
hooks:
- id: black
# Automatically update to modern python (as modern as allowed by your Python version)
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
hooks:
- id: pyupgrade
args: [--py37-plus, --keep-runtime-typing]
# Automatically sort and format imports (in black compatible way)
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
args: [--filter-files]
# See https://pre-commit.com for more information
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
args: [--unsafe]
- id: check-toml
- id: check-json
- repo: https://github.com/wazo-platform/wazo-git-hooks
rev: 1.1.1
hooks:
- id: wazo-copyright-check
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.7.1
hooks:
- id: mypy
language_version: "3.10"
additional_dependencies:
- "types-flask"
- "types-psycopg2"
- "types-pytz"
- "types-pyyaml"
- "types-requests"
- "types-setuptools"
- "types-werkzeug"
- "pytest"
- "twisted==20.3.0"
- "https://github.com/wazo-platform/wazo-provd/archive/master.zip"