Skip to content

Commit

Permalink
style: black format
Browse files Browse the repository at this point in the history
  • Loading branch information
ttngu207 committed Nov 14, 2024
1 parent da4e9e5 commit e62b3b6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
docker-compose.y*ml
.coverage
*.egg-info
.idea/
dist
build
docs/_build
Expand Down
2 changes: 1 addition & 1 deletion pharus/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
10 changes: 6 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
]
Expand Down

0 comments on commit e62b3b6

Please sign in to comment.