From b79f01e2fa3aaae32c57015df67159e3eefa7a06 Mon Sep 17 00:00:00 2001 From: protolambda Date: Sat, 1 Jun 2019 02:39:41 +0200 Subject: [PATCH] update flake8 to support type annotation in linting, ignore operator format and default param equals without spaces warnings --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 401e4bdc9..7d7c75052 100644 --- a/Makefile +++ b/Makefile @@ -40,11 +40,11 @@ citest: $(PY_SPEC_ALL_TARGETS) cd $(PY_SPEC_DIR); mkdir -p test-reports/eth2spec; . venv/bin/activate; python -m pytest --junitxml=test-reports/eth2spec/test_results.xml . install_lint: - cd $(PY_SPEC_DIR); python3 -m venv venv; . venv/bin/activate; pip3 install flake8==3.5.0 + cd $(PY_SPEC_DIR); python3 -m venv venv; . venv/bin/activate; pip3 install flake8==3.7.7 lint: $(PY_SPEC_ALL_TARGETS) cd $(PY_SPEC_DIR); . venv/bin/activate; \ - flake8 --max-line-length=120 ./eth2spec; + flake8 --ignore=E252,W504 --max-line-length=120 ./eth2spec; # "make pyspec" to create the pyspec for all phases. pyspec: $(PY_SPEC_ALL_TARGETS)