Freeze tox lint deps

Varying versions of yapf were reformatting the code in slightly
different ways.  Freezing all lint deps to avoid related issues.

Change-Id: I2ae889c883fb8954588dabc7a2b02b110d000f33
This commit is contained in:
Mark Burnett 2017-11-16 09:02:27 -06:00
parent eadd41bcba
commit 2fd461d0e8
2 changed files with 9 additions and 9 deletions

View File

@ -42,8 +42,8 @@ class PKI:
})
self.certificate_authorities[ca_name] = result
return (self._wrap_ca(ca_name, result['cert']), self._wrap_ca_key(
ca_name, result['key']))
return (self._wrap_ca(ca_name, result['cert']),
self._wrap_ca_key(ca_name, result['key']))
def generate_keypair(self, name):
priv_result = self._openssl(['genrsa', '-out', 'priv.pem'])
@ -69,8 +69,8 @@ class PKI:
'csr.json': self.csr(name=cn, groups=groups, hosts=hosts),
})
return (self._wrap_cert(name, result['cert']), self._wrap_cert_key(
name, result['key']))
return (self._wrap_cert(name, result['cert']),
self._wrap_cert_key(name, result['key']))
def csr(self,
*,

10
tox.ini
View File

@ -11,7 +11,7 @@ commands=
{posargs}
[testenv:bandit]
deps = bandit
deps = bandit==1.4.0
commands =
bandit -r promenade
@ -22,7 +22,7 @@ commands =
python setup.py build_sphinx {posargs}
[testenv:fmt]
deps = yapf
deps = yapf==0.20.0
commands =
yapf -ir {toxinidir}/promenade
@ -35,15 +35,15 @@ commands=
[testenv:gate-lint]
deps =
jsonschema
jsonschema==2.6.0
whitelist_externals = sh
commands =
{toxinidir}/tools/lint_gate.sh
[testenv:lint]
deps =
yapf
flake8
yapf==0.20.0
flake8==3.5.0
commands =
yapf -rd {toxinidir}/promenade
flake8 {toxinidir}/promenade