Download:
child 193:9c3b5aeb722c
parent 191:d4fb20496675
192:513e6162d4d6
Anton Shestakov <av6@dwimlabs.net>, Sat, 30 Jul 2016 13:42:46 +0800
linters: add python_version variable to flake8 config

1 файлов изменено, 6 вставок(+), 3 удалений(-) [+]
linters/flake8.yml file | annotate | diff | comparison | revisions
--- a/linters/flake8.yml Sat Jul 30 13:40:27 2016 +0800
+++ b/linters/flake8.yml Sat Jul 30 13:42:46 2016 +0800
@@ -1,6 +1,9 @@
+vars:
+ python_version: 2
+
setup:
- - ['virtualenv', '--python=python2', '../venv2']
- - ['../venv2/bin/pip', 'install', 'flake8', 'pep8-naming']
+ - ['virtualenv', '--python=python%(python_version)s', '../venv%(python_version)s']
+ - ['../venv%(python_version)s/bin/pip', 'install', 'flake8', 'pep8-naming']
-exec: ['../venv2/bin/flake8']
+exec: ['../venv%(python_version)s/bin/flake8']
version: ['--version']