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:
parent
eadd41bcba
commit
2fd461d0e8
|
@ -42,8 +42,8 @@ class PKI:
|
||||||
})
|
})
|
||||||
self.certificate_authorities[ca_name] = result
|
self.certificate_authorities[ca_name] = result
|
||||||
|
|
||||||
return (self._wrap_ca(ca_name, result['cert']), self._wrap_ca_key(
|
return (self._wrap_ca(ca_name, result['cert']),
|
||||||
ca_name, result['key']))
|
self._wrap_ca_key(ca_name, result['key']))
|
||||||
|
|
||||||
def generate_keypair(self, name):
|
def generate_keypair(self, name):
|
||||||
priv_result = self._openssl(['genrsa', '-out', 'priv.pem'])
|
priv_result = self._openssl(['genrsa', '-out', 'priv.pem'])
|
||||||
|
@ -69,8 +69,8 @@ class PKI:
|
||||||
'csr.json': self.csr(name=cn, groups=groups, hosts=hosts),
|
'csr.json': self.csr(name=cn, groups=groups, hosts=hosts),
|
||||||
})
|
})
|
||||||
|
|
||||||
return (self._wrap_cert(name, result['cert']), self._wrap_cert_key(
|
return (self._wrap_cert(name, result['cert']),
|
||||||
name, result['key']))
|
self._wrap_cert_key(name, result['key']))
|
||||||
|
|
||||||
def csr(self,
|
def csr(self,
|
||||||
*,
|
*,
|
||||||
|
|
10
tox.ini
10
tox.ini
|
@ -11,7 +11,7 @@ commands=
|
||||||
{posargs}
|
{posargs}
|
||||||
|
|
||||||
[testenv:bandit]
|
[testenv:bandit]
|
||||||
deps = bandit
|
deps = bandit==1.4.0
|
||||||
commands =
|
commands =
|
||||||
bandit -r promenade
|
bandit -r promenade
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ commands =
|
||||||
python setup.py build_sphinx {posargs}
|
python setup.py build_sphinx {posargs}
|
||||||
|
|
||||||
[testenv:fmt]
|
[testenv:fmt]
|
||||||
deps = yapf
|
deps = yapf==0.20.0
|
||||||
commands =
|
commands =
|
||||||
yapf -ir {toxinidir}/promenade
|
yapf -ir {toxinidir}/promenade
|
||||||
|
|
||||||
|
@ -35,15 +35,15 @@ commands=
|
||||||
|
|
||||||
[testenv:gate-lint]
|
[testenv:gate-lint]
|
||||||
deps =
|
deps =
|
||||||
jsonschema
|
jsonschema==2.6.0
|
||||||
whitelist_externals = sh
|
whitelist_externals = sh
|
||||||
commands =
|
commands =
|
||||||
{toxinidir}/tools/lint_gate.sh
|
{toxinidir}/tools/lint_gate.sh
|
||||||
|
|
||||||
[testenv:lint]
|
[testenv:lint]
|
||||||
deps =
|
deps =
|
||||||
yapf
|
yapf==0.20.0
|
||||||
flake8
|
flake8==3.5.0
|
||||||
commands =
|
commands =
|
||||||
yapf -rd {toxinidir}/promenade
|
yapf -rd {toxinidir}/promenade
|
||||||
flake8 {toxinidir}/promenade
|
flake8 {toxinidir}/promenade
|
||||||
|
|
Loading…
Reference in New Issue