Skip to content
Snippets Groups Projects
Commit d9dde442 authored by Georgiy Eterevskiy's avatar Georgiy Eterevskiy
Browse files

Add flake8

parent 1ab3eb45
No related branches found
No related tags found
No related merge requests found
[flake8]
max-line-length = 120
inline-quotes = single
multiline-quotes = double
avoid-escape = False
exclude = .git,.tox,.env,.github,.pytest_cache,__pycache__,files,dist,build,*.egg-info,*_pb2.py,*_pb2_grpc.py
\ No newline at end of file
......@@ -10,6 +10,7 @@ help:
@echo "clean-pyc - remove Python file artifacts"
@echo "clean-test - remove test and coverage artifacts"
@echo "clean-proto - remove generated gRPC code"
@echo "lint - check python code by flake8"
@echo "generate - generate gRPC code"
@echo "dist - package"
@echo "release - package and upload a release"
......@@ -42,6 +43,9 @@ clean-proto:
install-requirements:
pip install -r build-requirements.txt
lint: install-requirements
flake8 perxis/
generate: clean-proto install-requirements
find $(PROTO_FILES_DIR) -name '*.proto' -exec python3 -m grpc_tools.protoc -I${PROTO_FILES_DIR} --python_out=$(OUTPUT_FILES_DIR) --grpc_python_out=$(OUTPUT_FILES_DIR) {} +
......
......@@ -7,18 +7,27 @@ devpi-client==5.2.2
devpi-common==3.6.0
distlib==0.3.1
filelock==3.0.12
flake8==3.9.0
grpcio==1.36.1
grpcio-tools==1.36.1
idna==2.10
importlib-metadata==3.10.0
lazy==1.4
mccabe==0.6.1
packaging==20.9
pep517==0.9.1
pkginfo==1.7.0
pluggy==0.13.1
protobuf==3.15.7
py==1.10.0
pycodestyle==2.7.0
pyflakes==2.3.1
pyparsing==2.4.7
requests==2.25.1
six==1.15.0
toml==0.10.2
tox==3.23.0
typing-extensions==3.7.4.3
urllib3==1.26.3
virtualenv==20.4.2
zipp==3.4.1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment