From e066e0277d63bdd2d109e53862ddfc33425ae7d3 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 18 Jul 2024 23:18:39 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- manage.py | 3 ++- omero_search_engine/validation/results_validator.py | 4 +++- unit_tests/test_data.py | 4 +++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/manage.py b/manage.py index a858470..9dd39dc 100644 --- a/manage.py +++ b/manage.py @@ -145,7 +145,8 @@ def get_index_data_from_database(resource="all", backup="True"): save_key_value_buckets, ) import json - backup=json.loads(backup.lower()) + + backup = json.loads(backup.lower()) if resource != "all": sql_st = sqls_resources.get(resource) if not sql_st: diff --git a/omero_search_engine/validation/results_validator.py b/omero_search_engine/validation/results_validator.py index c9d8738..11a11c9 100644 --- a/omero_search_engine/validation/results_validator.py +++ b/omero_search_engine/validation/results_validator.py @@ -192,7 +192,9 @@ def get_results_db(self, operator=None): search_omero_app.logger.info("Getting results from postgres") if self.type == "buckets": if self.name: - sql = query_methods["available_values_for_key"].substitute(name=self.name) + sql = query_methods["available_values_for_key"].substitute( + name=self.name + ) conn = search_omero_app.config["database_connector"] self.postgres_results = conn.execute_query(sql) elif self.value: diff --git a/unit_tests/test_data.py b/unit_tests/test_data.py index 6ccf729..0a79144 100644 --- a/unit_tests/test_data.py +++ b/unit_tests/test_data.py @@ -83,7 +83,9 @@ ] } -contains_not_contains_queries = {"image": [["cell line", "hel"], ["gene symbol", "cep"]]} +contains_not_contains_queries = { + "image": [["cell line", "hel"], ["gene symbol", "cep"]] +} query_in = { "image": [