[pitivi/soundtouch] Update the pre-commit hooks



commit e7ee570b4c254afbdadd353c84ba13881cc568a1
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Wed Nov 3 01:04:21 2021 +0100

    Update the pre-commit hooks

 .pre-commit-config.yaml    | 4 ++--
 pylint.rc                  | 2 ++
 tests/test_medialibrary.py | 3 +--
 3 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 4e222af9a..30f833565 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -41,7 +41,7 @@ repos:
             pitivi/autoaligner.py|
           )$
   - repo: https://github.com/pre-commit/mirrors-mypy
-    rev: 'v0.910'
+    rev: 'v0.910-1'
     hooks:
       - id: mypy
         files: '^pitivi/(clipproperties.py|timeline/timeline.py)$'
@@ -69,7 +69,7 @@ repos:
           - -d
           - "{extends: default, rules: {line-length: disable}}"
   - repo: https://gitlab.com/devopshq/gitlab-ci-linter
-    rev: v1.0.3
+    rev: v1.0.4
     hooks:
       - id: gitlab-ci-linter
         args:
diff --git a/pylint.rc b/pylint.rc
index c16f489fa..f876c3365 100644
--- a/pylint.rc
+++ b/pylint.rc
@@ -39,7 +39,9 @@ disable=access-member-before-definition,
         arguments-differ, # Pylint fails at this with the Gtk do_* methods, so no thanks.
         arguments-renamed, # We renamed a handful of positional arguments.
         assignment-from-none, # Most probably subclasses return something else.
+        consider-using-f-string, # We can enable this after we merge some large MRs!
         global-statement,
+        global-variable-not-assigned,
         import-outside-toplevel,
         no-else-return, # Looks better in some cases.
         no-member,
diff --git a/tests/test_medialibrary.py b/tests/test_medialibrary.py
index c65852215..a5a46d96f 100644
--- a/tests/test_medialibrary.py
+++ b/tests/test_medialibrary.py
@@ -81,8 +81,7 @@ class BaseTestMediaLibrary(common.TestCase):
 
     def _progress_bar_cb(self, progressbar, unused_pspec):
         if self.check_no_transcoding:
-            self.assertTrue(progressbar.props.fraction == 1.0 or
-                            progressbar.props.fraction == 0.0,
+            self.assertTrue(progressbar.props.fraction in (0, 1),
                             "Some transcoding is happening, got progress: %f"
                             % progressbar.props.fraction)
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]