Merge "Move pep8 checks to py3 by default"
This commit is contained in:
commit
af6a4cf3a8
|
@ -39,7 +39,7 @@ class Zone:
|
||||||
self.to_file(sys.stdout)
|
self.to_file(sys.stdout)
|
||||||
|
|
||||||
def to_file(self, f):
|
def to_file(self, f):
|
||||||
if type(f) is file:
|
if type(f) is 'file':
|
||||||
fd = f
|
fd = f
|
||||||
elif type(f) is str:
|
elif type(f) is str:
|
||||||
if os.path.isdir(f):
|
if os.path.isdir(f):
|
||||||
|
|
2
tox.ini
2
tox.ini
|
@ -67,7 +67,7 @@ commands = sh tools/pretty_flake8.sh
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
deps = -r{toxinidir}/test-requirements.txt
|
deps = -r{toxinidir}/test-requirements.txt
|
||||||
basepython = python2.7
|
basepython = python3
|
||||||
commands = sh tools/pretty_flake8.sh
|
commands = sh tools/pretty_flake8.sh
|
||||||
{[testenv:bandit]commands}
|
{[testenv:bandit]commands}
|
||||||
doc8 README.rst releasenotes/source doc/source rally-jobs \
|
doc8 README.rst releasenotes/source doc/source rally-jobs \
|
||||||
|
|
Loading…
Reference in New Issue