Skip pb files in linters

In isort, black, and flake8, respectively.

Add `format` in Makefile

Run top level packages only

With `setup.py`, to avoid running other unrelated directories.

Refactor
This commit is contained in:
mhchia
2019-08-03 18:02:27 +08:00
committed by Kevin Mai-Husan Chia
parent c8005c8113
commit 4fef80595c
3 changed files with 33 additions and 3 deletions

22
pyproject.toml Normal file
View File

@ -0,0 +1,22 @@
[tool.black]
line-length = 88
target_version = ['py37']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
| \w*_pb2\w*\.py # pb2 files
)
'''