From 5876a2b4b934bc248917d7b8f65f6e19ee171187 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 21 May 2022 07:22:12 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tasks.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/tasks.py b/tasks.py index c637e48..b0702a8 100644 --- a/tasks.py +++ b/tasks.py @@ -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