From 7697f9c08514fdeb43fab738c98ee70b6a7f9a4e Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 23 Jul 2018 23:42:56 +0200 Subject: Improve the linters' coverage --- .gitlab-ci.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c14f4d1..209a829 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,6 +9,8 @@ bandit: script: # TODO: remove B405 and B314 - apt-get -qqy update - apt-get -qqy install --no-install-recommends python3-bandit + - bandit ./mat2 --format txt + - bandit -r ./nautilus/ --format txt - bandit -r ./libmat2 --format txt --skip B101,B404,B603,B405,B314 pylint: @@ -16,14 +18,16 @@ pylint: script: - apt-get -qqy update - apt-get -qqy install --no-install-recommends pylint3 python3-mutagen python3-gi-cairo gir1.2-poppler-0.18 gir1.2-gdkpixbuf-2.0 - - pylint3 --extension-pkg-whitelist=cairo,gi ./libmat2 + - pylint3 --extension-pkg-whitelist=cairo,gi ./libmat2 ./mat2 + # Once nautilus-python is in Debian, decomment it form the line below + - pylint3 --extension-pkg-whitelist=Nautilus,GObject,Gtk,Gio,GLib,gi ./nautilus/nautilus_mat2.py pyflakes: stage: linting script: - apt-get -qqy update - apt-get -qqy install --no-install-recommends pyflakes3 - - pyflakes3 ./libmat2 ./mat2 ./tests/ + - pyflakes3 ./libmat2 ./mat2 ./tests/ ./nautilus mypy: stage: linting @@ -32,6 +36,7 @@ mypy: - apt-get -qqy install --no-install-recommends python3-pip - pip3 install mypy - mypy mat2 libmat2/*.py --ignore-missing-imports + - mypy --ignore-missing-imports ./nautilus/nautilus_mat2.py tests:debian: stage: test -- cgit v1.3