Skip to content

Commit

Permalink
fix(action): use PEP 440 syntax to install Darker
Browse files Browse the repository at this point in the history
  • Loading branch information
akaihola committed Aug 1, 2024
1 parent 59d776d commit 2b486a6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions action/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@ def pip_install(*packages):
req = ["darker[color,isort]"]
if VERSION:
if VERSION.startswith("@"):
req[0] = (
f"git+https://github.com/akaihola/darker{VERSION}[color,isort]#egg=darker"
)
req[0] += f"@git+https://github.com/akaihola/darker{VERSION}"
elif VERSION.startswith(("~", "=", "<", ">")):
req[0] += VERSION
else:
Expand Down

0 comments on commit 2b486a6

Please sign in to comment.