clean up lint

This commit is contained in:
Hsiao-Wei Wang 2019-05-16 16:34:07 +08:00
parent f830f83a1d
commit 2885f853c2
No known key found for this signature in database
GPG Key ID: 95B070122902DEA4
2 changed files with 2 additions and 2 deletions

View File

@ -96,7 +96,7 @@ jobs:
reqs_checksum: '{{ checksum "test_libs/pyspec/requirements.txt" }}-{{ checksum "test_libs/pyspec/requirements-testing.txt" }}' reqs_checksum: '{{ checksum "test_libs/pyspec/requirements.txt" }}-{{ checksum "test_libs/pyspec/requirements-testing.txt" }}'
- run: - run:
name: Run linter name: Run linter
command: make install_lint && make pyspec && make lint command: make install_lint && make lint
workflows: workflows:
version: 2.1 version: 2.1
test_spec: test_spec:

View File

@ -42,7 +42,7 @@ citest: $(PY_SPEC_ALL_TARGETS)
install_lint: 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.5.0
lint: lint: $(PY_SPEC_ALL_TARGETS)
cd $(PY_SPEC_DIR); . venv/bin/activate; \ cd $(PY_SPEC_DIR); . venv/bin/activate; \
flake8 --max-line-length=120 ./eth2spec; flake8 --max-line-length=120 ./eth2spec;