From 3f6068f1dfe81d2f5a29ae725104ceef5e7bc015 Mon Sep 17 00:00:00 2001 From: Riccardo Pittau Date: Wed, 27 Mar 2024 14:39:05 +0100 Subject: [PATCH] Add codespell non voting test Change-Id: I19e8418da6ccd1d508b1102228c9b697a38442e4 --- tox.ini | 9 +++++++++ zuul.d/project.yaml | 4 ++++ zuul.d/sushy-oem-idrac-jobs.yaml | 6 ++++++ 3 files changed, 19 insertions(+) create mode 100644 zuul.d/sushy-oem-idrac-jobs.yaml diff --git a/tox.ini b/tox.ini index 64b2ef1..9bb5753 100644 --- a/tox.ini +++ b/tox.ini @@ -69,3 +69,12 @@ exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build import-order-style = pep8 application-import-names = sushy_oem_idrac filename = *.py + +[testenv:codespell] +description = + Run codespell to check spelling +deps = codespell +# note(JayF): {posargs} lets us run `tox -ecodespell -- -w` to get codespell +# to correct spelling issues in our code it's aware of. +commands = + codespell {posargs} diff --git a/zuul.d/project.yaml b/zuul.d/project.yaml index 7d1cedf..3ca8124 100644 --- a/zuul.d/project.yaml +++ b/zuul.d/project.yaml @@ -3,3 +3,7 @@ - check-requirements - openstack-cover-jobs - openstack-python3-jobs + check: + jobs: + - sushy-oem-idrac-tox-codespell: + voting: false diff --git a/zuul.d/sushy-oem-idrac-jobs.yaml b/zuul.d/sushy-oem-idrac-jobs.yaml new file mode 100644 index 0000000..36b5974 --- /dev/null +++ b/zuul.d/sushy-oem-idrac-jobs.yaml @@ -0,0 +1,6 @@ +- job: + name: sushy-oem-idrac-tox-codespell + parent: openstack-tox + timeout: 7200 + vars: + tox_envlist: codespell