From 6095c7426da2c983d15c81060680763da1ae3f5b Mon Sep 17 00:00:00 2001 From: frenzyfriday Date: Wed, 26 Oct 2022 20:36:33 +0200 Subject: [PATCH] Fixing the old syntax of using queue - Moved queue one level up as per [1] - Updated versions of the linters Newest version as of now are - black 22.10.0 https://github.com/psf/black/tags - flake8 5.0.4 https://gitlab.com/pycqa/flake8/tags - pre-commit-hooks v4.3.0 https://github.com/pre-commit/pre-commit-hooks/tags - yamllint v1.28.0 https://github.com/adrienverge/yamllint/tags - mirrors-isort v5.10.1 https://github.com/pre-commit/mirrors-isort/tags [1] https://lists.openstack.org/pipermail/openstack-discuss/2022-May/028603.html Change-Id: Iccd719e41e7328d404b1ee53b7e3bd0cef4d0c84 --- .pre-commit-config.yaml | 10 +++++----- zuul.d/layout.yaml | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index eb9c178..daea3a8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ --- repos: - repo: https://github.com/pre-commit/pre-commit-hooks.git - rev: v3.4.0 + rev: v4.3.0 hooks: - id: end-of-file-fixer - id: trailing-whitespace @@ -12,7 +12,7 @@ repos: - id: debug-statements language_version: python3 - repo: https://github.com/adrienverge/yamllint.git - rev: v1.26.1 + rev: v1.28.0 hooks: - id: yamllint files: \.(yaml|yml)$ @@ -24,19 +24,19 @@ repos: entry: > yamllint --strict -d "rules: { key-ordering: enable }" - repo: https://github.com/pre-commit/mirrors-isort - rev: v5.8.0 + rev: v5.10.1 hooks: - id: isort args: # https://github.com/pre-commit/mirrors-isort/issues/9#issuecomment-624404082 - --filter-files - repo: https://github.com/python/black.git - rev: 21.4b2 + rev: 22.10.0 hooks: - id: black language_version: python3 - repo: https://github.com/pycqa/flake8.git - rev: 3.9.1 + rev: 5.0.4 hooks: - id: flake8 language_version: python3 diff --git a/zuul.d/layout.yaml b/zuul.d/layout.yaml index aceee63..7bfea8a 100644 --- a/zuul.d/layout.yaml +++ b/zuul.d/layout.yaml @@ -6,9 +6,9 @@ jobs: - openstack-tox-linters - openstack-tox-py38 - # Deliberately avoid tripleo queue on this repository because it would - # slowdown changes, where most are of urgent nature, like updating the - # list of queries. This repository is not supposed to use any - # dependencies on other changes. - queue: system-config + # Deliberately avoid tripleo queue on this repository because it would + # slowdown changes, where most are of urgent nature, like updating the + # list of queries. This repository is not supposed to use any + # dependencies on other changes. + queue: system-config gate: *jobs