Remove pyflakes
Isn't borderline useless compared to mypy and pylint
This commit is contained in:
parent
618e0a8e39
commit
180ea24e5a
@ -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
|
||||
|
@ -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,
|
||||
|
@ -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
7
mat2
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user