From fbcaed93cd21f456e5e07473b644dcc6e28d964b Mon Sep 17 00:00:00 2001 From: stackhpc-ci <22933334+stackhpc-ci@users.noreply.github.com> Date: Tue, 4 Feb 2025 16:29:17 +0000 Subject: [PATCH 1/2] feat: automatic update of workflows stackhpc/master --- .github/workflows/tag-and-release.yml | 12 ++++++++++++ .github/workflows/tox.yml | 7 +++++++ 2 files changed, 19 insertions(+) create mode 100644 .github/workflows/tag-and-release.yml create mode 100644 .github/workflows/tox.yml diff --git a/.github/workflows/tag-and-release.yml b/.github/workflows/tag-and-release.yml new file mode 100644 index 000000000..cff2f940d --- /dev/null +++ b/.github/workflows/tag-and-release.yml @@ -0,0 +1,12 @@ +--- +name: Tag & Release +'on': + push: + branches: + - stackhpc/master +permissions: + actions: read + contents: write +jobs: + tag-and-release: + uses: stackhpc/.github/.github/workflows/tag-and-release.yml@main diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml new file mode 100644 index 000000000..8713f0e02 --- /dev/null +++ b/.github/workflows/tox.yml @@ -0,0 +1,7 @@ +--- +name: Tox Continuous Integration +'on': + pull_request: +jobs: + tox: + uses: stackhpc/.github/.github/workflows/tox.yml@main From 1dc71eece3a2c50c6d6f11e2636cb0eeee259a5b Mon Sep 17 00:00:00 2001 From: Seunghun Lee Date: Wed, 5 Feb 2025 11:47:24 +0000 Subject: [PATCH 2/2] Add C901 to ignore list of pep8 C901 Function is too complex is catching ManagerService.create_lease() because the function has more than 5 potential branches. Because the function is in WIP in master branch, ignore C901 at least until the function is in stable state. --- tox.ini | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 52374cd75..c4544d263 100644 --- a/tox.ini +++ b/tox.ini @@ -64,7 +64,10 @@ exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,tools,api-ref # W503 line break before binary operator # W504 line break after binary operator # E402 module level import not at top of file -ignore=H105,H238,E123,E402,W503,W504 +# NOTE(seunghun1ee): Remove C901 when ManagerService.create_lease() +# in /blazar/manager/service.py get refactored +# C901 Function is too complex +ignore=H105,H238,E123,E402,W503,W504,C901 # [H904] Delay string interpolations at logging calls. enable-extensions=H904 # To get a list of functions that have a complexity of 17 or more, set