Download:
child 261:0f5d7ade0367
parent 259:d6260ec4891d
260:7ffb6f327aa4
Anton Shestakov <av6@dwimlabs.net>, Fri, 16 Jun 2017 15:16:56 +0800
linters: make yamllint also use python_version In case of Python 3 projects that also have YAML files this can change save some seconds spent on setting up an extra virtualenv (for Python 2).

1 файлов изменено, 6 вставок(+), 3 удалений(-) [+]
linters/yamllint.yml file | annotate | diff | comparison | revisions
--- a/linters/yamllint.yml Fri Feb 03 18:08:05 2017 +0800
+++ b/linters/yamllint.yml Fri Jun 16 15:16:56 2017 +0800
@@ -1,7 +1,10 @@
+vars:
+ python_version: 2
+
setup:
- - ['virtualenv', '--python=python2', '../venv2']
- - ['../venv2/bin/pip', 'install', 'yamllint']
+ - ['virtualenv', '--python=python%(python_version)s', '../venv%(python_version)s']
+ - ['../venv%(python_version)s/bin/pip', 'install', 'yamllint']
-exec: ['../venv2/bin/yamllint']
+exec: ['../venv%(python_version)s/bin/yamllint']
flags: ['--config-data', 'relaxed', '--format', 'parsable']
version: ['--version']