Skip to content

Commit

Permalink
Fix tasks.py.
Browse files Browse the repository at this point in the history
  • Loading branch information
lang-m committed Feb 20, 2022
1 parent 4c0e8de commit 387f668
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from invoke import Collection, task

PYTHON = 'python'
root_collection = Collection()
ns = Collection()


@task
Expand Down Expand Up @@ -56,9 +56,9 @@ def release(c):
c.run('git push -F --tags')


root_collection.add_task(build_dists)
root_collection.add_task(upload)
root_collection.add_task(release)
ns.add_task(build_dists)
ns.add_task(upload)
ns.add_task(release)

test_collection = Collection('test')

Expand All @@ -79,8 +79,8 @@ def coverage(c):
@task
def docs(c):
"""Run doctests."""
pytest.main(['-v', '--doctest-modules', '--ignore', 'ubermagutil/tests',
'ubermagutil'])
pytest.main(['-v', '--doctest-modules', '--ignore',
'ubermagutil/tests', 'ubermagutil'])


@task
Expand All @@ -104,9 +104,9 @@ def all(unittest):
"""Run all tests."""


test.add_task(unittest)
test.add_task(docs)
test.add_task(ipynb)
test.add_task(pycodestyle)
test.add_task(all)
root_collection.add_collection(test_collection)
test_collection.add_task(unittest)
test_collection.add_task(docs)
test_collection.add_task(ipynb)
test_collection.add_task(pycodestyle)
test_collection.add_task(all)
ns.add_collection(test_collection)

0 comments on commit 387f668

Please sign in to comment.