75cb349622
This commit introduces a new Zuul job, stx-distcloud-tox-black, and a corresponding black_check tox environment to ensure Python files are formatted with Black. Initially, the black_check environment will check the formatting of specified modules[1]. As modules are progressively formatted, the configuration will be updated to enforce Black formatting on these modules. During this transition, the job will only fail for modules that have been updated to comply with Black formatting. Eventually, the environment will be configured to check the entire project, ensuring consistent code style across all files. 1: Check `modules` in run_black.py script. Note: Once all modules are formatted, run_black.py will be deleted. Test Plan: PASS - Success in stx-distcloud-tox-black Story: 2011149 Task: 50432 Change-Id: I8a8044d44b85679cf5e71106784c192ef343f5b6 Signed-off-by: Hugo Brito <hugo.brito@windriver.com>
175 lines
8.5 KiB
YAML
175 lines
8.5 KiB
YAML
---
|
|
- project:
|
|
templates:
|
|
- publish-stx-docs
|
|
- stx-api-ref-jobs
|
|
- stx-release-notes-jobs
|
|
- stx-bandit-jobs
|
|
check:
|
|
jobs:
|
|
- openstack-tox-linters
|
|
- stx-distcloud-tox-pep8
|
|
- stx-distcloud-tox-py39
|
|
- stx-distcloud-tox-pylint
|
|
- stx-distcloud-tox-black
|
|
gate:
|
|
jobs:
|
|
- openstack-tox-linters
|
|
- stx-distcloud-tox-pep8
|
|
- stx-distcloud-tox-py39
|
|
- stx-distcloud-tox-pylint
|
|
- stx-distcloud-tox-black
|
|
post:
|
|
jobs:
|
|
- stx-distcloud-upload-git-mirror
|
|
|
|
- job:
|
|
name: stx-distcloud-tox-py39
|
|
parent: tox-py39
|
|
description: Run py39 for distcloud
|
|
nodeset: debian-bullseye
|
|
pre-run:
|
|
- tools/gate/playbooks/install-postgresql.yaml
|
|
required-projects:
|
|
- starlingx/fault
|
|
- starlingx/nfv
|
|
- starlingx/update
|
|
- starlingx/config
|
|
- starlingx/root
|
|
vars:
|
|
python_version: 3.9
|
|
tox_envlist: py39
|
|
tox_extra_args: -c distributedcloud/tox.ini
|
|
|
|
- job:
|
|
name: stx-distcloud-tox-pylint
|
|
parent: tox
|
|
description: Run pylint for distcloud
|
|
nodeset: debian-bullseye
|
|
required-projects:
|
|
- starlingx/fault
|
|
- starlingx/nfv
|
|
- starlingx/update
|
|
- starlingx/config
|
|
vars:
|
|
python_version: 3.9
|
|
tox_envlist: pylint
|
|
tox_extra_args: -c distributedcloud/tox.ini
|
|
|
|
- job:
|
|
name: stx-distcloud-tox-pep8
|
|
parent: tox
|
|
description: Run pep8 for distcloud
|
|
nodeset: debian-bullseye
|
|
required-projects:
|
|
- starlingx/fault
|
|
- starlingx/nfv
|
|
- starlingx/update
|
|
- starlingx/config
|
|
vars:
|
|
python_version: 3.9
|
|
tox_envlist: pep8
|
|
tox_extra_args: -c distributedcloud/tox.ini
|
|
|
|
- job:
|
|
name: stx-distcloud-tox-black
|
|
parent: tox
|
|
description: Run black for distcloud
|
|
nodeset: debian-bullseye
|
|
vars:
|
|
python_version: 3.9
|
|
tox_envlist: black
|
|
tox_extra_args: -c distributedcloud/tox.ini
|
|
|
|
- job:
|
|
name: stx-distcloud-upload-git-mirror
|
|
parent: upload-git-mirror
|
|
description: >
|
|
Mirrors opendev.org/starlingx/distcloud to
|
|
github.com/starlingx/distcloud
|
|
vars:
|
|
git_mirror_repository: starlingx/distcloud
|
|
secrets:
|
|
- name: git_mirror_credentials
|
|
secret: stx-distcloud-github-secret2
|
|
pass-to-parent: true
|
|
|
|
- secret:
|
|
name: stx-distcloud-github-secret2
|
|
data:
|
|
user: git
|
|
host: github.com
|
|
# yamllint disable-line rule:line-length
|
|
host_key: github.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCj7ndNxQowgcQnjshcLrqPEiiphnt+VTTvDP6mHBL9j1aNUkY4Ue1gvwnGLVlOhGeYrnZaMgRK6+PKCUXaDbC7qtbW8gIkhL7aGCsOr/C56SJMy/BCZfxd1nWzAOxSDPgVsmerOBYfNqltV9/hWCqBywINIR+5dIg6JTJ72pcEpEjcYgXkE2YEFXV1JHnsKgbLWNlhScqb2UmyRkQyytRLtL+38TGxkxCflmO+5Z8CSSNY7GidjMIZ7Q4zMjA2n1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