From df1eb98a40e9c3dd052c2eff75d6bf75b2a34ba0 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Tue, 26 Nov 2019 22:12:56 +0100 Subject: [PATCH] Please the new version of pylint --- .gitlab-ci.yml | 4 ++-- libmat2/bubblewrap.py | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5713d5b..c89198a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -31,9 +31,9 @@ linting:pylint: image: $CONTAINER_REGISTRY:linting stage: linting script: - - pylint3 --disable=no-else-return --extension-pkg-whitelist=cairo,gi ./libmat2 ./mat2 + - pylint3 --disable=no-else-return,no-else-raise,no-else-continue,unnecessary-comprehension --extension-pkg-whitelist=cairo,gi ./libmat2 ./mat2 # Once nautilus-python is in Debian, decomment it form the line below - - pylint3 --disable=no-else-return --extension-pkg-whitelist=Nautilus,GObject,Gtk,Gio,GLib,gi ./nautilus/mat2.py + - pylint3 --disable=no-else-return,no-else-raise,no-else-continue,unnecessary-comprehension --extension-pkg-whitelist=Nautilus,GObject,Gtk,Gio,GLib,gi ./nautilus/mat2.py linting:pyflakes: image: $CONTAINER_REGISTRY:linting diff --git a/libmat2/bubblewrap.py b/libmat2/bubblewrap.py index fb6fc9d..c05bdaa 100644 --- a/libmat2/bubblewrap.py +++ b/libmat2/bubblewrap.py @@ -18,6 +18,8 @@ __all__ = ['PIPE', 'run', 'CalledProcessError'] PIPE = subprocess.PIPE CalledProcessError = subprocess.CalledProcessError +# pylint: disable=subprocess-run-check + def _get_bwrap_path() -> str: bwrap_path = '/usr/bin/bwrap'