From: beierlm Date: Mon, 29 Jun 2020 16:37:16 +0000 (-0400) Subject: Flake8 Ignore X-Git-Tag: v8.0.0rc2^0 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=67c5280f3a0376ae6311c57d180f9bccdfc6fd3e;p=osm%2Fvim-emu.git Flake8 Ignore Adding F523 and E741 to flake8 ignore so that is behaves the same as the previous version. Change-Id: I8d2b17e432318e70af5e2a112797c95a2baeffd2 Signed-off-by: beierlm --- diff --git a/Jenkinsfile b/Jenkinsfile index 1f12510..18b2e32 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -62,7 +62,7 @@ node('docker') { sh "docker images" sh "docker run --rm --privileged --pid='host' -v /var/run/docker.sock:/var/run/docker.sock -u 0:0 osm/vim-emu-master pip3 list" sh "docker run --rm --privileged --pid='host' -v /var/run/docker.sock:/var/run/docker.sock -u 0:0 osm/vim-emu-master pytest -v" - sh "docker run --rm --privileged --pid='host' -v /var/run/docker.sock:/var/run/docker.sock -u 0:0 osm/vim-emu-master flake8 --exclude=.eggs,devops,build,examples/charms --ignore=E501,W605,W504 ." + sh "docker run --rm --privileged --pid='host' -v /var/run/docker.sock:/var/run/docker.sock -u 0:0 osm/vim-emu-master flake8 --exclude=.eggs,devops,build,examples/charms --ignore=E501,W605,W504,E741,F523 ." sh "echo 'done'" } } diff --git a/pipeline_local.sh b/pipeline_local.sh index 4116b18..fe5a2b6 100755 --- a/pipeline_local.sh +++ b/pipeline_local.sh @@ -30,7 +30,7 @@ set -e # trigger pep8 style check echo "Doing flake8 style check ..." -flake8 --exclude=.eggs,build,devops,examples/charms --ignore=E501,W605,W504 . +flake8 --exclude=.eggs,build,devops,examples/charms --ignore=E501,W605,W504,E741,F523 . echo "done." # trigger the tests echo "Running unit tests ..." @@ -39,5 +39,5 @@ sudo pytest -v docker build -t vim-emu-loc-test . docker run --rm --privileged --pid='host' -v /var/run/docker.sock:/var/run/docker.sock vim-emu-loc-test pip3 list docker run --rm --privileged --pid='host' -v /var/run/docker.sock:/var/run/docker.sock vim-emu-loc-test pytest -v -docker run --rm --privileged --pid='host' -v /var/run/docker.sock:/var/run/docker.sock vim-emu-loc-test flake8 --exclude=.eggs,devopsi,build,examples/charms --ignore=E501,W605,W504 . +docker run --rm --privileged --pid='host' -v /var/run/docker.sock:/var/run/docker.sock vim-emu-loc-test flake8 --exclude=.eggs,devopsi,build,examples/charms --ignore=E501,W605,W504,E741,F523 . echo "done."