diff options
| -rw-r--r-- | .gitlab-ci.yml | 4 | ||||
| -rw-r--r-- | .pylintrc | 1 | ||||
| -rw-r--r-- | libmat2/bubblewrap.py | 2 |
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 | ||
| 38 | linting:pyflakes: | 38 | linting:pyflakes: |
| 39 | image: $CONTAINER_REGISTRY:linting | 39 | image: $CONTAINER_REGISTRY:linting |
| @@ -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 | ||
| 33 | def _get_bwrap_args(tempdir: str, | 32 | def _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 | ||
| 81 | def run(args: List[str], | 79 | def run(args: List[str], |
| 82 | input_filename: str, | 80 | input_filename: str, |
| 83 | output_filename: Optional[str] = None, | 81 | output_filename: Optional[str] = None, |
