summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabor Pali <gabor.pali@ibm.com>2023-02-02 17:31:45 +0100
committerNick Vatamaniuc <nickva@users.noreply.github.com>2023-04-13 15:50:18 -0400
commitf7a9b35275c8d13d4e1f8994dad9c07c7efdb64f (patch)
treed639ea0e66dcf532b0801c0b24c9b47794c838d2
parent95372279e0df17e4b6ef69771a6864d55a8ac88b (diff)
downloadcouchdb-f7a9b35275c8d13d4e1f8994dad9c07c7efdb64f.tar.gz
Employ `make python-black-update`
-rwxr-xr-xbuild-aux/show-test-results.py4
-rwxr-xr-xdev/run2
-rw-r--r--src/docs/ext/configdomain.py2
-rw-r--r--src/mango/test/06-text-default-field-test.py3
-rw-r--r--src/mango/test/07-text-custom-field-list-test.py2
-rw-r--r--src/mango/test/user_docs.py2
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