We are running our annual fundraising drive. If you can afford it, please help us to keep going!. Or maybe with a matching donation?

Commit 77dde8a0 authored by jvoisin's avatar jvoisin

Please pylint

parent 1b361ec2
Pipeline #49048 failed with stages
in 3 minutes and 28 seconds
...@@ -31,9 +31,9 @@ linting:pylint: ...@@ -31,9 +31,9 @@ linting:pylint:
image: $CONTAINER_REGISTRY:linting image: $CONTAINER_REGISTRY:linting
stage: linting stage: linting
script: 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 # 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: linting:pyflakes:
image: $CONTAINER_REGISTRY:linting image: $CONTAINER_REGISTRY:linting
......
...@@ -14,4 +14,5 @@ disable= ...@@ -14,4 +14,5 @@ disable=
catching-non-exception, catching-non-exception,
cell-var-from-loop, cell-var-from-loop,
locally-disabled, locally-disabled,
raise-missing-from,
invalid-sequence-index, # pylint doesn't like things like `Tuple[int, bytes]` in type annotation invalid-sequence-index, # pylint doesn't like things like `Tuple[int, bytes]` in type annotation
...@@ -29,7 +29,6 @@ def _get_bwrap_path() -> str: ...@@ -29,7 +29,6 @@ def _get_bwrap_path() -> str:
raise RuntimeError("Unable to find bwrap") # pragma: no cover raise RuntimeError("Unable to find bwrap") # pragma: no cover
# pylint: disable=bad-whitespace
def _get_bwrap_args(tempdir: str, def _get_bwrap_args(tempdir: str,
input_filename: str, input_filename: str,
output_filename: Optional[str] = None) -> List[str]: output_filename: Optional[str] = None) -> List[str]:
...@@ -77,7 +76,6 @@ def _get_bwrap_args(tempdir: str, ...@@ -77,7 +76,6 @@ def _get_bwrap_args(tempdir: str,
return args return args
# pylint: disable=bad-whitespace
def run(args: List[str], def run(args: List[str],
input_filename: str, input_filename: str,
output_filename: Optional[str] = None, output_filename: Optional[str] = None,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment