1
0
mirror of synced 2024-06-18 09:49:38 +02:00

Remove pyflakes

Isn't borderline useless compared to mypy and pylint
This commit is contained in:
jvoisin 2022-11-21 19:42:31 +01:00
parent 618e0a8e39
commit 180ea24e5a
4 changed files with 1 additions and 18 deletions

View File

@ -38,12 +38,6 @@ linting:pylint:
# 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,raise-missing-from,unsubscriptable-object,use-list-literal --extension-pkg-whitelist=Nautilus,GObject,Gtk,Gio,GLib,gi ./nautilus/mat2.py
linting:pyflakes:
image: $CONTAINER_REGISTRY:linting
stage: linting
script:
- pyflakes3 ./libmat2 ./mat2 ./tests/ ./nautilus
linting:mypy:
image: $CONTAINER_REGISTRY:linting
stage: linting

View File

@ -11,9 +11,6 @@ from typing import Pattern, Union, Any
from . import abstract, UnknownMemberPolicy, parser_factory
# Make pyflakes happy
assert Pattern
# pylint: disable=not-callable,assignment-from-no-return,too-many-branches
# An ArchiveClass is a class representing an archive,

View File

@ -12,9 +12,6 @@ from .archive import ZipParser
# pylint: disable=line-too-long
# Make pyflakes happy
assert Pattern
def _parse_xml(full_path: str) -> tuple[ET.ElementTree, dict[str, str]]:
""" This function parses XML, with namespace support. """
namespace_map = dict()

7
mat2
View File

@ -2,7 +2,7 @@
import os
import shutil
from typing import Tuple, List, Union, Set
from typing import List, Union, Set
import sys
import mimetypes
import argparse
@ -19,11 +19,6 @@ except ValueError as ex:
__version__ = '0.13.0'
# Make pyflakes happy
assert Set
assert Tuple
assert Union
logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.WARNING)
def __print_without_chars(s: str):