From e62b3b6001a1ab10628893774252d40741354f09 Mon Sep 17 00:00:00 2001 From: Thinh Nguyen Date: Thu, 14 Nov 2024 16:04:00 -0600 Subject: [PATCH] style: black format --- .gitignore | 1 + pharus/interface.py | 2 +- setup.py | 10 ++++++---- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index ac51e6e9..85a4b9b1 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ docker-compose.y*ml .coverage *.egg-info +.idea/ dist build docs/_build diff --git a/pharus/interface.py b/pharus/interface.py index 4aab8d84..8dd810ed 100644 --- a/pharus/interface.py +++ b/pharus/interface.py @@ -517,7 +517,7 @@ def _filter_to_restriction(attribute_filter: dict, attribute_type: str) -> str: operation = " IS " if attribute_filter["operation"] == "=" else " IS NOT " else: operation = attribute_filter["operation"] - + if ( re.match(r"^datetime.*$", attribute_type) or re.match(r"timestamp", attribute_type) diff --git a/setup.py b/setup.py index a53c1ea7..8ac53b98 100644 --- a/setup.py +++ b/setup.py @@ -14,11 +14,13 @@ with open(path.join(here, "requirements.txt")) as f: requirements = [ - "{pkg} @ {target}#egg={pkg}".format( - pkg=re.search(r"/([A-Za-z0-9\-]+)\.git", r).group(1), target=r + ( + "{pkg} @ {target}#egg={pkg}".format( + pkg=re.search(r"/([A-Za-z0-9\-]+)\.git", r).group(1), target=r + ) + if "+" in r + else r ) - if "+" in r - else r for r in f.read().splitlines() if "#" not in r ]