Commit 66299a00 authored by Andrew Vagin's avatar Andrew Vagin Committed by Pavel Emelyanov

zdtm: use flake8 to verify zdtm.py

and fix various warnings. For example, we mix tab and space indentations.

v2: add flake8.cfg

Cc: Tycho Andersen <tycho.andersen@canonical.com>
Signed-off-by: 's avatarAndrew Vagin <avagin@virtuozzo.com>
Acked-by: 's avatarTycho Andersen <tycho.andersen@canonical.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 93991e66
...@@ -321,6 +321,9 @@ help: ...@@ -321,6 +321,9 @@ help:
@echo ' gcov - Make code coverage report' @echo ' gcov - Make code coverage report'
.PHONY: help .PHONY: help
lint:
flake8 --config=scripts/flake8.cfg test/zdtm.py
include Makefile.install include Makefile.install
.DEFAULT_GOAL := all .DEFAULT_GOAL := all
......
[flake8]
# W191 indentation contains tabs
# E128 continuation line under-indented for visual indent
# E501 line too long
# E251 unexpected spaces around keyword / parameter equals
# E101 indentation contains mixed spaces and tabs
# E126 continuation line over-indented for hanging indent
ignore = W191,E128,E501,E251,E101,E126
...@@ -9,3 +9,6 @@ chmod a+x $HOME ...@@ -9,3 +9,6 @@ chmod a+x $HOME
make make
make -C test/zdtm make -C test/zdtm
python test/zdtm.py run -a -f h,ns -x 'cgroup*' python test/zdtm.py run -a -f h,ns -x 'cgroup*'
pip install flake8
make lint
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment