summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitlab-ci.yml4
-rw-r--r--.pylintrc1
-rw-r--r--libmat2/bubblewrap.py2
3 files changed, 3 insertions, 4 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 38cbe20..eb3466c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -31,9 +31,9 @@ linting:pylint:
31 image: $CONTAINER_REGISTRY:linting 31 image: $CONTAINER_REGISTRY:linting
32 stage: linting 32 stage: linting
33 script: 33 script:
34 - pylint --disable=no-else-return,no-else-raise,no-else-continue,unnecessary-comprehension --extension-pkg-whitelist=cairo,gi ./libmat2 ./mat2 34 - pylint --disable=no-else-return,no-else-raise,no-else-continue,unnecessary-comprehension,raise-missing-from --extension-pkg-whitelist=cairo,gi ./libmat2 ./mat2
35 # Once nautilus-python is in Debian, decomment it form the line below 35 # Once nautilus-python is in Debian, decomment it form the line below
36 - pylint --disable=no-else-return,no-else-raise,no-else-continue,unnecessary-comprehension --extension-pkg-whitelist=Nautilus,GObject,Gtk,Gio,GLib,gi ./nautilus/mat2.py 36 - pylint --disable=no-else-return,no-else-raise,no-else-continue,unnecessary-comprehension,raise-missing-from --extension-pkg-whitelist=Nautilus,GObject,Gtk,Gio,GLib,gi ./nautilus/mat2.py
37 37
38linting:pyflakes: 38linting:pyflakes:
39 image: $CONTAINER_REGISTRY:linting 39 image: $CONTAINER_REGISTRY:linting
diff --git a/.pylintrc b/.pylintrc
index 31fad0e..41b3795 100644
--- a/.pylintrc
+++ b/.pylintrc
@@ -14,4 +14,5 @@ disable=
14 catching-non-exception, 14 catching-non-exception,
15 cell-var-from-loop, 15 cell-var-from-loop,
16 locally-disabled, 16 locally-disabled,
17 raise-missing-from,
17 invalid-sequence-index, # pylint doesn't like things like `Tuple[int, bytes]` in type annotation 18 invalid-sequence-index, # pylint doesn't like things like `Tuple[int, bytes]` in type annotation
diff --git a/libmat2/bubblewrap.py b/libmat2/bubblewrap.py
index 8033d0a..0d09a4c 100644
--- a/libmat2/bubblewrap.py
+++ b/libmat2/bubblewrap.py
@@ -29,7 +29,6 @@ def _get_bwrap_path() -> str:
29 raise RuntimeError("Unable to find bwrap") # pragma: no cover 29 raise RuntimeError("Unable to find bwrap") # pragma: no cover
30 30
31 31
32# pylint: disable=bad-whitespace
33def _get_bwrap_args(tempdir: str, 32def _get_bwrap_args(tempdir: str,
34 input_filename: str, 33 input_filename: str,
35 output_filename: Optional[str] = None) -> List[str]: 34 output_filename: Optional[str] = None) -> List[str]:
@@ -77,7 +76,6 @@ def _get_bwrap_args(tempdir: str,
77 return args 76 return args
78 77
79 78
80# pylint: disable=bad-whitespace
81def run(args: List[str], 79def run(args: List[str],
82 input_filename: str, 80 input_filename: str,
83 output_filename: Optional[str] = None, 81 output_filename: Optional[str] = None,