You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2023/04/13 19:50:40 UTC

[couchdb] 13/15: Employ `make python-black-update`

This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch 3.3.x
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit f7a9b35275c8d13d4e1f8994dad9c07c7efdb64f
Author: Gabor Pali <ga...@ibm.com>
AuthorDate: Thu Feb 2 17:31:45 2023 +0100

    Employ `make python-black-update`
---
 build-aux/show-test-results.py                   | 4 ++--
 dev/run                                          | 2 --
 src/docs/ext/configdomain.py                     | 2 --
 src/mango/test/06-text-default-field-test.py     | 3 ---
 src/mango/test/07-text-custom-field-list-test.py | 2 --
 src/mango/test/user_docs.py                      | 2 +-
 6 files changed, 3 insertions(+), 12 deletions(-)

diff --git a/build-aux/show-test-results.py b/build-aux/show-test-results.py
index edd6ca13f..ca28a3ee8 100755
--- a/build-aux/show-test-results.py
+++ b/build-aux/show-test-results.py
@@ -18,7 +18,7 @@ TEST_COLLECTIONS = {
 
 def _attrs(elem):
     ret = {}
-    for (k, v) in elem.attributes.items():
+    for k, v in elem.attributes.items():
         ret[k.lower()] = v
     return ret
 
@@ -381,7 +381,7 @@ def main():
         args.collection = ["eunit", "exunit", "mango", "javascript"]
 
     collections = []
-    for (name, pattern) in TEST_COLLECTIONS.items():
+    for name, pattern in TEST_COLLECTIONS.items():
         if name.lower() not in args.collection:
             continue
         collections.append(TestCollection(name, pattern))
diff --git a/dev/run b/dev/run
index 52db65255..df1a0b105 100755
--- a/dev/run
+++ b/dev/run
@@ -452,7 +452,6 @@ def boot_haproxy(ctx):
 
 
 def hack_default_ini(ctx, node, contents):
-
     contents = re.sub(
         "^\[httpd\]$",
         "[httpd]\nenable = true",
@@ -594,7 +593,6 @@ def check_node_alive(url):
 
 
 def set_boot_env(ctx):
-
     # fudge fauxton path
     if os.path.exists("src/fauxton/dist/release"):
         fauxton_root = "src/fauxton/dist/release"
diff --git a/src/docs/ext/configdomain.py b/src/docs/ext/configdomain.py
index 983ac44b0..671726e22 100644
--- a/src/docs/ext/configdomain.py
+++ b/src/docs/ext/configdomain.py
@@ -56,7 +56,6 @@ class ConfigObject(ObjectDescription):
 
 
 class ConfigIndex(Index):
-
     name = "ref"
     localname = "Configuration Quick Reference"
     shortname = "Config Quick Reference"
@@ -79,7 +78,6 @@ class ConfigIndex(Index):
 
 
 class ConfigDomain(Domain):
-
     name = "config"
     label = "CONFIG"
 
diff --git a/src/mango/test/06-text-default-field-test.py b/src/mango/test/06-text-default-field-test.py
index 7fdbd747d..1e88967f2 100644
--- a/src/mango/test/06-text-default-field-test.py
+++ b/src/mango/test/06-text-default-field-test.py
@@ -16,7 +16,6 @@ import unittest
 
 @unittest.skipUnless(mango.has_text_service(), "requires text service")
 class NoDefaultFieldTest(mango.UserDocsTextTests):
-
     DEFAULT_FIELD = False
 
     def test_basic(self):
@@ -32,7 +31,6 @@ class NoDefaultFieldTest(mango.UserDocsTextTests):
 
 @unittest.skipUnless(mango.has_text_service(), "requires text service")
 class NoDefaultFieldWithAnalyzer(mango.UserDocsTextTests):
-
     DEFAULT_FIELD = {"enabled": False, "analyzer": "keyword"}
 
     def test_basic(self):
@@ -47,7 +45,6 @@ class NoDefaultFieldWithAnalyzer(mango.UserDocsTextTests):
 
 @unittest.skipUnless(mango.has_text_service(), "requires text service")
 class DefaultFieldWithCustomAnalyzer(mango.UserDocsTextTests):
-
     DEFAULT_FIELD = {"enabled": True, "analyzer": "keyword"}
 
     def test_basic(self):
diff --git a/src/mango/test/07-text-custom-field-list-test.py b/src/mango/test/07-text-custom-field-list-test.py
index 8514111c4..36b23a7f6 100644
--- a/src/mango/test/07-text-custom-field-list-test.py
+++ b/src/mango/test/07-text-custom-field-list-test.py
@@ -17,7 +17,6 @@ import user_docs
 
 @unittest.skipUnless(mango.has_text_service(), "requires text service")
 class CustomFieldsTest(mango.UserDocsTextTests):
-
     FIELDS = [
         {"name": "favorites.[]", "type": "string"},
         {"name": "manager", "type": "boolean"},
@@ -163,7 +162,6 @@ class CustomFieldsTest(mango.UserDocsTextTests):
 
 @unittest.skipUnless(mango.has_text_service(), "requires text service")
 class CustomFieldsExistsTest(mango.UserDocsTextTests):
-
     FIELDS = [
         {"name": "exists_field", "type": "string"},
         {"name": "exists_array.[]", "type": "string"},
diff --git a/src/mango/test/user_docs.py b/src/mango/test/user_docs.py
index 8f0ed2e04..4f06e0342 100644
--- a/src/mango/test/user_docs.py
+++ b/src/mango/test/user_docs.py
@@ -89,7 +89,7 @@ def add_view_indexes(db, kwargs):
         (["twitter"], "twitter"),
         (["ordered"], "ordered"),
     ]
-    for (idx, name) in indexes:
+    for idx, name in indexes:
         assert db.create_index(idx, name=name, ddoc=name) is True