1
0
mirror of synced 2024-11-25 10:44:23 +01:00

Please a bit the CI

This commit is contained in:
jvoisin 2021-11-21 11:02:22 +01:00
parent 0c91ac7367
commit fb7440ab5d
3 changed files with 3 additions and 3 deletions

View File

@ -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 --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 --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 --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 --extension-pkg-whitelist=Nautilus,GObject,Gtk,Gio,GLib,gi ./nautilus/mat2.py

View File

@ -108,7 +108,7 @@ class EPUBParser(archive.ZipParser):
item.append(uniqid) item.append(uniqid)
# items without mandatory content # items without mandatory content
for name in {'language', 'title'}: for name in ['language', 'title']:
uniqid = ET.Element(self.metadata_namespace + name) uniqid = ET.Element(self.metadata_namespace + name)
item.append(uniqid) item.append(uniqid)
break # there is only a single <metadata> block break # there is only a single <metadata> block

View File

@ -50,7 +50,7 @@ class AbstractFFmpegParser(exiftool.ExiftoolParser):
ret = dict() # type: Dict[str, Union[str, dict]] ret = dict() # type: Dict[str, Union[str, dict]]
for key, value in meta.items(): for key, value in meta.items():
if key in self.meta_key_value_allowlist.keys(): if key in self.meta_key_value_allowlist:
if value == self.meta_key_value_allowlist[key]: if value == self.meta_key_value_allowlist[key]:
continue continue
ret[key] = value ret[key] = value