Skip to content
GitLab
Menu
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
fb7440ab
Commit
fb7440ab
authored
Nov 21, 2021
by
jvoisin
Browse files
Please a bit the CI
parent
0c91ac73
Changes
3
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
fb7440ab
...
...
@@ -31,7 +31,7 @@ linting:pylint:
image
:
$CONTAINER_REGISTRY:linting
stage
:
linting
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
-
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
...
...
libmat2/epub.py
View file @
fb7440ab
...
...
@@ -108,7 +108,7 @@ class EPUBParser(archive.ZipParser):
item
.
append
(
uniqid
)
# items without mandatory content
for
name
in
{
'language'
,
'title'
}
:
for
name
in
[
'language'
,
'title'
]
:
uniqid
=
ET
.
Element
(
self
.
metadata_namespace
+
name
)
item
.
append
(
uniqid
)
break
# there is only a single <metadata> block
...
...
libmat2/video.py
View file @
fb7440ab
...
...
@@ -50,7 +50,7 @@ class AbstractFFmpegParser(exiftool.ExiftoolParser):
ret
=
dict
()
# type: Dict[str, Union[str, dict]]
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
]:
continue
ret
[
key
]
=
value
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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