Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 21, 2022
1 parent 4adaf00 commit 16174ef
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
def unittest(c):
"""Run unittests."""
import mag2exp

result = mag2exp.test()
raise Exit(code=result)

Expand Down Expand Up @@ -109,9 +110,9 @@ def release(c):
# sanity checks while we have two places containing the version.
with open("pyproject.toml", "rb") as f:
toml_version = tomli.load(f)["project"]["version"]
assert toml_version == version, (
"Different versions in pyproject.toml and setup.cfg. Aborting."
)
assert (
toml_version == version
), "Different versions in pyproject.toml and setup.cfg. Aborting."

c.run(f"git tag {version}") # fails if the tag exists
c.run("git tag -f latest") # `latest` tag for binder
Expand Down

0 comments on commit 16174ef

Please sign in to comment.