diff options
| author | jvoisin | 2021-11-21 11:02:22 +0100 |
|---|---|---|
| committer | jvoisin | 2021-11-21 11:02:22 +0100 |
| commit | fb7440ab5ddaffe52d1f765c59fecd2c0e3aa944 (patch) | |
| tree | 28602022bebba5f084f09d808000c9f6c1f023bb | |
| parent | 0c91ac7367ba3a859a7ba08d4ca586538748a5c4 (diff) | |
Please a bit the CI
| -rw-r--r-- | .gitlab-ci.yml | 2 | ||||
| -rw-r--r-- | libmat2/epub.py | 2 | ||||
| -rw-r--r-- | libmat2/video.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6163117..a7d5653 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml | |||
| @@ -31,7 +31,7 @@ linting:pylint: | |||
| 31 | image: $CONTAINER_REGISTRY:linting | 31 | image: $CONTAINER_REGISTRY:linting |
| 32 | stage: linting | 32 | stage: linting |
| 33 | script: | 33 | script: |
| 34 | - 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 | 34 | - 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 |
| 35 | # Once nautilus-python is in Debian, decomment it form the line below | 35 | # Once nautilus-python is in Debian, decomment it form the line below |
| 36 | - 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 | 36 | - 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 |
| 37 | 37 | ||
diff --git a/libmat2/epub.py b/libmat2/epub.py index af059d2..be05562 100644 --- a/libmat2/epub.py +++ b/libmat2/epub.py | |||
| @@ -108,7 +108,7 @@ class EPUBParser(archive.ZipParser): | |||
| 108 | item.append(uniqid) | 108 | item.append(uniqid) |
| 109 | 109 | ||
| 110 | # items without mandatory content | 110 | # items without mandatory content |
| 111 | for name in {'language', 'title'}: | 111 | for name in ['language', 'title']: |
| 112 | uniqid = ET.Element(self.metadata_namespace + name) | 112 | uniqid = ET.Element(self.metadata_namespace + name) |
| 113 | item.append(uniqid) | 113 | item.append(uniqid) |
| 114 | break # there is only a single <metadata> block | 114 | break # there is only a single <metadata> block |
diff --git a/libmat2/video.py b/libmat2/video.py index b4a3232..ae9e463 100644 --- a/libmat2/video.py +++ b/libmat2/video.py | |||
| @@ -50,7 +50,7 @@ class AbstractFFmpegParser(exiftool.ExiftoolParser): | |||
| 50 | 50 | ||
| 51 | ret = dict() # type: Dict[str, Union[str, dict]] | 51 | ret = dict() # type: Dict[str, Union[str, dict]] |
| 52 | for key, value in meta.items(): | 52 | for key, value in meta.items(): |
| 53 | if key in self.meta_key_value_allowlist.keys(): | 53 | if key in self.meta_key_value_allowlist: |
| 54 | if value == self.meta_key_value_allowlist[key]: | 54 | if value == self.meta_key_value_allowlist[key]: |
| 55 | continue | 55 | continue |
| 56 | ret[key] = value | 56 | ret[key] = value |
