comparison tasks.py @ 1883:17bee25a20cb

reformat Ignore-this: 9392ba9c775fe3c5997496ddfe598f09
author Drew Perttula <drewp@bigasterisk.com>
date Tue, 28 May 2019 06:46:08 +0000
parents f001d689b3e2
children 36849634d50b
comparison
equal deleted inserted replaced
1882:5c1b662c0263 1883:17bee25a20cb
45 #for src in bin_sources: 45 #for src in bin_sources:
46 # print(f"mypy {src}") 46 # print(f"mypy {src}")
47 # run([src])# + pkg_sources()) 47 # run([src])# + pkg_sources())
48 @task 48 @task
49 def reformat(ctx): 49 def reformat(ctx):
50 ctx.run("env/bin/yapf --verbose --parallel --in-place --style google light9/**/*.py `file --no-pad bin/* | grep 'Python script' | perl -lpe 's/:.*//'`") 50 ctx.run("env/bin/yapf --verbose --parallel --in-place --style google light9/*.py light9/*/*.py `file --no-pad bin/* | grep 'Python script' | perl -lpe 's/:.*//'`")
51 51
52 @task 52 @task
53 def test(ctx): 53 def test(ctx):
54 ctx.run('docker build -f Dockerfile.build -t light9_build:latest .') 54 ctx.run('docker build -f Dockerfile.build -t light9_build:latest .')
55 ctx.run('docker run --rm -it -v `pwd`:/opt light9_build:latest' 55 ctx.run('docker run --rm -it -v `pwd`:/opt light9_build:latest'