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 8142492 commit 5876a2b
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions tasks.py
Original file line number Diff line number Diff line change
@@ -18,6 +18,7 @@
def unittest(c):
"""Run unittests."""
import micromagnetictests

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

@@ -33,7 +34,13 @@ def coverage(c):
def docs(c):
"""Run doctests."""
result = pytest.main(
["-v", "--doctest-modules", "--ignore", "micromagnetictests/tests", "micromagnetictests"]
[
"-v",
"--doctest-modules",
"--ignore",
"micromagnetictests/tests",
"micromagnetictests",
]
)
raise Exit(code=result)

@@ -109,9 +116,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

0 comments on commit 5876a2b

Please sign in to comment.