Move flake8 settings to tox.ini

And add flake8 in the Makefile.
This commit is contained in:
mhchia 2019-08-04 00:11:49 +08:00
parent f20b78c93f
commit 727342a767
No known key found for this signature in database
GPG Key ID: 389EFBEA1362589A
3 changed files with 6 additions and 9 deletions

View File

@ -1,6 +0,0 @@
[flake8]
ignore = E203, E266, E501, W503
max-line-length = 80
max-complexity = 18
select = B,C,E,F,W,T4,B9

View File

@ -10,6 +10,7 @@ lintroll:
# TODO: add flake8
black --check $(FILES_TO_LINT)
isort --recursive --check-only $(FILES_TO_LINT)
flake8 $(FILES_TO_LINT)
protobufs:
cd libp2p/pubsub/pb && protoc --python_out=. rpc.proto

View File

@ -6,9 +6,11 @@ envlist =
lint
[flake8]
max-line-length= 100
exclude=*_pb2*.py
ignore=
max-line-length = 100
exclude = *_pb2*.py
ignore = E203, E266, E501, W503
max-complexity = 18
select = B,C,E,F,W,T4,B9
[isort]
force_sort_within_sections=True