diff options
| -rw-r--r-- | .gitlab-ci.yml | 6 | ||||
| -rw-r--r-- | libmat2/archive.py | 3 | ||||
| -rw-r--r-- | libmat2/office.py | 3 | ||||
| -rwxr-xr-x | mat2 | 7 |
4 files changed, 1 insertions, 18 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e497ef8..97354ba 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml | |||
| @@ -38,12 +38,6 @@ linting:pylint: | |||
| 38 | # Once nautilus-python is in Debian, decomment it form the line below | 38 | # Once nautilus-python is in Debian, decomment it form the line below |
| 39 | - pylint --disable=no-else-return,no-else-raise,no-else-continue,unnecessary-comprehension,raise-missing-from,unsubscriptable-object,use-list-literal --extension-pkg-whitelist=Nautilus,GObject,Gtk,Gio,GLib,gi ./nautilus/mat2.py | 39 | - pylint --disable=no-else-return,no-else-raise,no-else-continue,unnecessary-comprehension,raise-missing-from,unsubscriptable-object,use-list-literal --extension-pkg-whitelist=Nautilus,GObject,Gtk,Gio,GLib,gi ./nautilus/mat2.py |
| 40 | 40 | ||
| 41 | linting:pyflakes: | ||
| 42 | image: $CONTAINER_REGISTRY:linting | ||
| 43 | stage: linting | ||
| 44 | script: | ||
| 45 | - pyflakes3 ./libmat2 ./mat2 ./tests/ ./nautilus | ||
| 46 | |||
| 47 | linting:mypy: | 41 | linting:mypy: |
| 48 | image: $CONTAINER_REGISTRY:linting | 42 | image: $CONTAINER_REGISTRY:linting |
| 49 | stage: linting | 43 | stage: linting |
diff --git a/libmat2/archive.py b/libmat2/archive.py index 5f058b9..25ff7f9 100644 --- a/libmat2/archive.py +++ b/libmat2/archive.py | |||
| @@ -11,9 +11,6 @@ from typing import Pattern, Union, Any | |||
| 11 | 11 | ||
| 12 | from . import abstract, UnknownMemberPolicy, parser_factory | 12 | from . import abstract, UnknownMemberPolicy, parser_factory |
| 13 | 13 | ||
| 14 | # Make pyflakes happy | ||
| 15 | assert Pattern | ||
| 16 | |||
| 17 | # pylint: disable=not-callable,assignment-from-no-return,too-many-branches | 14 | # pylint: disable=not-callable,assignment-from-no-return,too-many-branches |
| 18 | 15 | ||
| 19 | # An ArchiveClass is a class representing an archive, | 16 | # An ArchiveClass is a class representing an archive, |
diff --git a/libmat2/office.py b/libmat2/office.py index ae6ef39..1c1bca8 100644 --- a/libmat2/office.py +++ b/libmat2/office.py | |||
| @@ -12,9 +12,6 @@ from .archive import ZipParser | |||
| 12 | 12 | ||
| 13 | # pylint: disable=line-too-long | 13 | # pylint: disable=line-too-long |
| 14 | 14 | ||
| 15 | # Make pyflakes happy | ||
| 16 | assert Pattern | ||
| 17 | |||
| 18 | def _parse_xml(full_path: str) -> tuple[ET.ElementTree, dict[str, str]]: | 15 | def _parse_xml(full_path: str) -> tuple[ET.ElementTree, dict[str, str]]: |
| 19 | """ This function parses XML, with namespace support. """ | 16 | """ This function parses XML, with namespace support. """ |
| 20 | namespace_map = dict() | 17 | namespace_map = dict() |
| @@ -2,7 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | import os | 3 | import os |
| 4 | import shutil | 4 | import shutil |
| 5 | from typing import Tuple, List, Union, Set | 5 | from typing import List, Union, Set |
| 6 | import sys | 6 | import sys |
| 7 | import mimetypes | 7 | import mimetypes |
| 8 | import argparse | 8 | import argparse |
| @@ -19,11 +19,6 @@ except ValueError as ex: | |||
| 19 | 19 | ||
| 20 | __version__ = '0.13.0' | 20 | __version__ = '0.13.0' |
| 21 | 21 | ||
| 22 | # Make pyflakes happy | ||
| 23 | assert Set | ||
| 24 | assert Tuple | ||
| 25 | assert Union | ||
| 26 | |||
| 27 | logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.WARNING) | 22 | logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.WARNING) |
| 28 | 23 | ||
| 29 | def __print_without_chars(s: str): | 24 | def __print_without_chars(s: str): |
