Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jvoisin
mat2
Commits
180ea24e
Commit
180ea24e
authored
Nov 21, 2022
by
jvoisin
Browse files
Remove pyflakes
Isn't borderline useless compared to mypy and pylint
parent
618e0a8e
Pipeline
#116659
passed with stages
in 2 minutes and 10 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
180ea24e
...
...
@@ -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
...
...
libmat2/archive.py
View file @
180ea24e
...
...
@@ -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,
...
...
libmat2/office.py
View file @
180ea24e
...
...
@@ -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
()
...
...
mat2
View file @
180ea24e
...
...
@@ -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
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment