Please the linters wrt. the previous commit
This commit is contained in:
parent
1703ed6ebb
commit
22199df4d0
@ -31,7 +31,7 @@ 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,raise-missing-from,unsubscriptable-object,use-dict-literal,unspecified-encoding,consider-using-f-string,use-list-literal --extension-pkg-whitelist=cairo,gi ./libmat2 ./mat2
|
- pylint --disable=no-else-return,no-else-raise,no-else-continue,unnecessary-comprehension,raise-missing-from,unsubscriptable-object,use-dict-literal,unspecified-encoding,consider-using-f-string,use-list-literal,too-many-statements --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,raise-missing-from,unsubscriptable-object,use-list-literal --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,unsubscriptable-object,use-list-literal --extension-pkg-whitelist=Nautilus,GObject,Gtk,Gio,GLib,gi ./nautilus/mat2.py
|
||||||
|
|
||||||
|
@ -438,9 +438,11 @@ class ZipParser(ArchiveBasedAbstractParser):
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _get_member_compression(member: ArchiveMember):
|
def _get_member_compression(member: ArchiveMember):
|
||||||
|
assert isinstance(member, zipfile.ZipInfo) # please mypy
|
||||||
return member.compress_type
|
return member.compress_type
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _set_member_compression(member: ArchiveMember, compression) -> ArchiveMember:
|
def _set_member_compression(member: ArchiveMember, compression) -> ArchiveMember:
|
||||||
|
assert isinstance(member, zipfile.ZipInfo) # please mypy
|
||||||
member.compress_type = compression
|
member.compress_type = compression
|
||||||
return member
|
return member
|
||||||
|
Loading…
Reference in New Issue
Block a user