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).
--- a/linters/yamllint.yml Fri Feb 03 18:08:05 2017 +0800
+++ b/linters/yamllint.yml Fri Jun 16 15:16:56 2017 +0800
- - ['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']