Run tox linters on zuul check
It will prevent committing code rejected by linters. Commit changes performed by black. Change-Id: I5abe7f8aaec51c890bff355d0a544edae2992d5d
This commit is contained in:
parent
31cf2ab234
commit
e51d4ec473
@ -1,3 +1,9 @@
|
||||
- job:
|
||||
name: jjb-tox-linters
|
||||
parent: tox
|
||||
vars:
|
||||
tox_envlist: linters
|
||||
|
||||
- job:
|
||||
name: jjb-tox-cross-python-jenkins
|
||||
description: Tests compatibility with master branch of python-jenkins
|
||||
@ -22,6 +28,7 @@
|
||||
rtd_webhook_id: '47271'
|
||||
check:
|
||||
jobs:
|
||||
- jjb-tox-linters
|
||||
- jjb-tox-cross-python-jenkins
|
||||
- jjb-tox-docs-linkcheck
|
||||
- tox-cover
|
||||
|
@ -1851,6 +1851,7 @@ def add_filter_by_name_wildcard_behaviors(traits, data):
|
||||
fail_required=True,
|
||||
)
|
||||
|
||||
|
||||
def add_notification_context_trait(traits, data):
|
||||
"""Change the default GitHub check notification context from
|
||||
"continuous-integration/jenkins/SUFFIX" to a custom label / suffix.
|
||||
@ -1889,4 +1890,4 @@ def add_notification_context_trait(traits, data):
|
||||
elif type(nc_suffix) == bool:
|
||||
nc_trait_suffix.text = str(nc_suffix).lower()
|
||||
else:
|
||||
nc_trait_suffix.text = nc_suffix
|
||||
nc_trait_suffix.text = nc_suffix
|
||||
|
@ -32,8 +32,8 @@ class ListFromJenkinsTests(TestWithScenarios, CmdTestsBase):
|
||||
dict(
|
||||
jobs=["folder1", "folder1/job1", "folder1/job2"],
|
||||
globs=[],
|
||||
found=["folder1", "folder1/job1", "folder1/job2"]
|
||||
)
|
||||
found=["folder1", "folder1/job1", "folder1/job2"],
|
||||
),
|
||||
),
|
||||
(
|
||||
"multiple_with_glob",
|
||||
|
Loading…
Reference in New Issue
Block a user