mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-12 16:10:57 +00:00
Move flake8 settings to tox.ini
And add flake8 in the Makefile.
This commit is contained in:
6
.flake8
6
.flake8
@ -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
|
|
||||||
|
|
||||||
1
Makefile
1
Makefile
@ -10,6 +10,7 @@ lintroll:
|
|||||||
# TODO: add flake8
|
# TODO: add flake8
|
||||||
black --check $(FILES_TO_LINT)
|
black --check $(FILES_TO_LINT)
|
||||||
isort --recursive --check-only $(FILES_TO_LINT)
|
isort --recursive --check-only $(FILES_TO_LINT)
|
||||||
|
flake8 $(FILES_TO_LINT)
|
||||||
|
|
||||||
protobufs:
|
protobufs:
|
||||||
cd libp2p/pubsub/pb && protoc --python_out=. rpc.proto
|
cd libp2p/pubsub/pb && protoc --python_out=. rpc.proto
|
||||||
|
|||||||
8
tox.ini
8
tox.ini
@ -6,9 +6,11 @@ envlist =
|
|||||||
lint
|
lint
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
max-line-length= 100
|
max-line-length = 100
|
||||||
exclude=*_pb2*.py
|
exclude = *_pb2*.py
|
||||||
ignore=
|
ignore = E203, E266, E501, W503
|
||||||
|
max-complexity = 18
|
||||||
|
select = B,C,E,F,W,T4,B9
|
||||||
|
|
||||||
[isort]
|
[isort]
|
||||||
force_sort_within_sections=True
|
force_sort_within_sections=True
|
||||||
|
|||||||
Reference in New Issue
Block a user