From 61deb461f2a36413cbb6108e7e0e86fc81f44891 Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Fri, 6 Apr 2018 22:16:37 +0200 Subject: [PATCH] tasks: Update to work with invoke >= 0.13 --- tasks.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tasks.py b/tasks.py index 77cb11a3..db7143a5 100644 --- a/tasks.py +++ b/tasks.py @@ -4,14 +4,14 @@ from invoke import run, task @task -def docs(watch=False, warn=False): +def docs(ctx, watch=False, warn=False): if watch: return watcher(docs) run('make -C docs/ html', warn=warn) @task -def test(path=None, coverage=False, watch=False, warn=False): +def test(ctx, path=None, coverage=False, watch=False, warn=False): if watch: return watcher(test, path=path, coverage=coverage) path = path or 'tests/' @@ -23,14 +23,14 @@ def test(path=None, coverage=False, watch=False, warn=False): @task -def lint(watch=False, warn=False): +def lint(ctx, watch=False, warn=False): if watch: return watcher(lint) run('flake8', warn=warn) @task -def update_authors(): +def update_authors(ctx): # Keep authors in the order of appearance and use awk to filter out dupes run("git log --format='- %aN <%aE>' --reverse | awk '!x[$0]++' > AUTHORS")