--- a/checker.py Mon Jun 13 11:08:16 2016 +0800
+++ b/checker.py Mon Jun 13 11:10:56 2016 +0800
if not run(['hg', 'log', '-r', '.', '-T', template], silent=True):
+ print('# C&O task: setup')
+ print_and_run(['virtualenv', venv])
+ pip = os.path.join(venv, 'bin', 'pip')
+ for linter in config['linters']:
+ if not run([pip, 'install'] + linter['pip']):
print('# C&O task: cleanup')