Skip to content

Commit 1eb65f2

Browse files
committed
Update "tasks.py" file.
1 parent e84b8f0 commit 1eb65f2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tasks.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def requirements(ctx):
310310
'> requirements.txt')
311311

312312

313-
@task(preflight, docs, todo, requirements)
313+
@task(clean, preflight, docs, todo, requirements)
314314
def build(ctx):
315315
"""
316316
Builds the project and runs dependency tasks, i.e., *docs*, *todo*, and
@@ -329,9 +329,10 @@ def build(ctx):
329329

330330
message_box('Building...')
331331
ctx.run('poetry build')
332+
ctx.run('twine check dist/*')
332333

333334

334-
@task(clean, build)
335+
@task
335336
def virtualise(ctx, tests=True):
336337
"""
337338
Create a virtual environment for the project build.
@@ -413,7 +414,7 @@ def tag(ctx):
413414
ctx.run('git flow release finish v{0}'.format(version))
414415

415416

416-
@task(clean, build)
417+
@task(build)
417418
def release(ctx):
418419
"""
419420
Releases the project to *Pypi* with *Twine*.

0 commit comments

Comments
 (0)