Merge "Run pep8 everywhere"
This commit is contained in:
commit
a99959d6fa
|
@ -14,8 +14,6 @@
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import collections
|
|
||||||
|
|
||||||
import ruamel.yaml
|
import ruamel.yaml
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -62,7 +62,7 @@ while not done:
|
||||||
changes = json.loads(r.text[4:])
|
changes = json.loads(r.text[4:])
|
||||||
for change in changes:
|
for change in changes:
|
||||||
if (not change.get('labels') or
|
if (not change.get('labels') or
|
||||||
not change.get('labels').get('Verified')):
|
not change.get('labels').get('Verified')):
|
||||||
continue
|
continue
|
||||||
for key, value in change['labels']['Verified'].items():
|
for key, value in change['labels']['Verified'].items():
|
||||||
if key == 'value':
|
if key == 'value':
|
||||||
|
|
|
@ -31,7 +31,7 @@ def main():
|
||||||
|
|
||||||
for project in data:
|
for project in data:
|
||||||
if ('upstream' in project and
|
if ('upstream' in project and
|
||||||
'track-upstream' not in project.get('options', [])):
|
'track-upstream' not in project.get('options', [])):
|
||||||
del project['upstream']
|
del project['upstream']
|
||||||
|
|
||||||
with open('gerrit/projects.yaml', 'w') as out:
|
with open('gerrit/projects.yaml', 'w') as out:
|
||||||
|
|
4
tox.ini
4
tox.ini
|
@ -10,9 +10,7 @@ passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
|
||||||
[testenv:linters]
|
[testenv:linters]
|
||||||
commands =
|
commands =
|
||||||
{toxinidir}/tools/run-bashate.sh
|
{toxinidir}/tools/run-bashate.sh
|
||||||
# TODO(jaegerandi): Remove parameter to test everywhere once
|
flake8
|
||||||
# Zuul v2 files have been removed
|
|
||||||
flake8 jenkins/scripts roles playbooks nodepool
|
|
||||||
|
|
||||||
[testenv:gerrit]
|
[testenv:gerrit]
|
||||||
deps = PyYAML
|
deps = PyYAML
|
||||||
|
|
Loading…
Reference in New Issue