summaryrefslogtreecommitdiffhomepage
path: root/tasks.py
diff options
context:
space:
mode:
Diffstat (limited to 'tasks.py')
-rw-r--r--tasks.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/tasks.py b/tasks.py
index 6ea0a2c4..3d2fdf65 100644
--- a/tasks.py
+++ b/tasks.py
@@ -7,6 +7,7 @@ from invocations import travis
from invocations.checks import blacken
from invocations.docs import docs, www, sites
from invocations.packaging.release import ns as release_coll, publish
+from invocations.testing import count_errors
# TODO: this screams out for the invoke missing-feature of "I just wrap task X,
@@ -39,7 +40,7 @@ def test(
# running headless? Probably?
if color:
opts += " --color=yes"
- opts += " --capture={0}".format(capture)
+ opts += " --capture={}".format(capture)
if "-m" not in opts and not include_slow:
opts += " -m 'not slow'"
if k is not None and not ("-k" in opts if opts else False):
@@ -122,7 +123,16 @@ def release(ctx, sdist=True, wheel=True, sign=True, dry_run=False, index=None):
release_coll.tasks["publish"] = release
ns = Collection(
- test, coverage, guard, release_coll, docs, www, sites, travis, blacken
+ test,
+ coverage,
+ guard,
+ release_coll,
+ docs,
+ www,
+ sites,
+ count_errors,
+ travis,
+ blacken,
)
ns.configure(
{