Download:
child 98:c922c588315e
parent 96:92d44000f283
97:4bd6c0a6ba6d
Anton Shestakov <av6@dwimlabs.net>, Mon, 04 Jul 2016 16:04:14 +0800
checker: print what linters are to be installed and the results of that

1 файлов изменено, 6 вставок(+), 0 удалений(-) [+]
checker.py file | annotate | diff | comparison | revisions
--- a/checker.py Mon Jul 04 15:55:47 2016 +0800
+++ b/checker.py Mon Jul 04 16:04:14 2016 +0800
@@ -117,6 +117,10 @@
if ok:
print('# C&O task: setup')
+
+ to_install = [l['name'] for l in config.get('linters', []) if 'name' in l]
+ print('# C&O linters to install: {}'.format(' '.join(to_install)))
+
linter_config = {}
for linter in config.get('linters', []):
@@ -142,6 +146,8 @@
ok = False
break
+ print('# C&O linters installed: {}'.format(' '.join(linter_config.keys())))
+
if ok:
print('# C&O task: checks')
for linter in config.get('linters', []):