-
Notifications
You must be signed in to change notification settings - Fork 7
/
.pre-commit-config.yaml
37 lines (37 loc) · 1.11 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
# 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: 22.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: [--py39-plus]
# Automatically sort and format imports (in black compatible way)
- repo: https://github.com/pycqa/isort
rev: 5.12.0
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
- repo: https://github.com/wazo-platform/wazo-git-hooks
rev: 1.1.1
hooks:
- id: wazo-copyright-check