Switch project to use black, isort and flake8 (thanks @hanifbirgani)

This commit is contained in:
Emil Stenström 2021-09-03 16:56:33 +02:00 committed by GitHub
commit acff86d4f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 0 deletions

13
.pre-commit-config.yaml Normal file
View file

@ -0,0 +1,13 @@
repos:
- repo: https://github.com/pycqa/isort
rev: 5.9.3
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 21.8b0
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8

17
pyproject.toml Normal file
View file

@ -0,0 +1,17 @@
[tool.black]
line-length = 79
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| activate
| _build
| buck-out
| build
| dist
)/
'''