scripts: Add flake8 checker
Add code and style checker flake8. Signed-off-by: Daniel Wagner <daniel.wagner@siemens.com>
This commit is contained in:
parent
25bc0c9c06
commit
e24f8cff7c
@ -14,7 +14,7 @@ install:
|
|||||||
# install kas to have all kas dependencies:
|
# install kas to have all kas dependencies:
|
||||||
- pip install .
|
- pip install .
|
||||||
# checkcode dependencies:
|
# checkcode dependencies:
|
||||||
- pip install pycodestyle doc8 Pygments
|
- pip install flake8 pycodestyle doc8 Pygments
|
||||||
# test dependencies:
|
# test dependencies:
|
||||||
- pip install pytest
|
- pip install pytest
|
||||||
|
|
||||||
|
@ -5,6 +5,9 @@ ERROR=0
|
|||||||
echo "Checking with pycodestyle"
|
echo "Checking with pycodestyle"
|
||||||
pycodestyle --ignore=W503,W606 $1/*.py $1/*/*.py || ERROR=$(expr $ERROR + 1)
|
pycodestyle --ignore=W503,W606 $1/*.py $1/*/*.py || ERROR=$(expr $ERROR + 1)
|
||||||
|
|
||||||
|
echo "Checking with flake8"
|
||||||
|
flake8 $1 || ERROR=$(expr $ERROR + 2)
|
||||||
|
|
||||||
echo "Checking with doc8"
|
echo "Checking with doc8"
|
||||||
doc8 $1/docs --ignore-path $1/docs/_build || ERROR=$(expr $ERROR + 4)
|
doc8 $1/docs --ignore-path $1/docs/_build || ERROR=$(expr $ERROR + 4)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user