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: image: $CONTAINER_REGISTRY:linting stage: linting script: - - pylint --disable=no-else-return,no-else-raise,no-else-continue,unnecessary-comprehension --extension-pkg-whitelist=cairo,gi ./libmat2 ./mat2 + - pylint --disable=no-else-return,no-else-raise,no-else-continue,unnecessary-comprehension,raise-missing-from --extension-pkg-whitelist=cairo,gi ./libmat2 ./mat2 # Once nautilus-python is in Debian, decomment it form the line below - - 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 + - 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 linting:pyflakes: image: $CONTAINER_REGISTRY:linting diff --git a/.pylintrc b/.pylintrc index 31fad0e..41b3795 100644 --- a/.pylintrc +++ b/.pylintrc @@ -14,4 +14,5 @@ disable= catching-non-exception, cell-var-from-loop, locally-disabled, + raise-missing-from, 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: raise RuntimeError("Unable to find bwrap") # pragma: no cover -# pylint: disable=bad-whitespace def _get_bwrap_args(tempdir: str, input_filename: str, output_filename: Optional[str] = None) -> List[str]: @@ -77,7 +76,6 @@ def _get_bwrap_args(tempdir: str, return args -# pylint: disable=bad-whitespace def run(args: List[str], input_filename: str, output_filename: Optional[str] = None,