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
This commit is contained in:
frenzyfriday 2022-10-26 20:36:33 +02:00
parent a4568d33a6
commit 6095c7426d
2 changed files with 10 additions and 10 deletions

View File

@ -1,7 +1,7 @@
--- ---
repos: repos:
- repo: https://github.com/pre-commit/pre-commit-hooks.git - repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v3.4.0 rev: v4.3.0
hooks: hooks:
- id: end-of-file-fixer - id: end-of-file-fixer
- id: trailing-whitespace - id: trailing-whitespace
@ -12,7 +12,7 @@ repos:
- id: debug-statements - id: debug-statements
language_version: python3 language_version: python3
- repo: https://github.com/adrienverge/yamllint.git - repo: https://github.com/adrienverge/yamllint.git
rev: v1.26.1 rev: v1.28.0
hooks: hooks:
- id: yamllint - id: yamllint
files: \.(yaml|yml)$ files: \.(yaml|yml)$
@ -24,19 +24,19 @@ repos:
entry: > entry: >
yamllint --strict -d "rules: { key-ordering: enable }" yamllint --strict -d "rules: { key-ordering: enable }"
- repo: https://github.com/pre-commit/mirrors-isort - repo: https://github.com/pre-commit/mirrors-isort
rev: v5.8.0 rev: v5.10.1
hooks: hooks:
- id: isort - id: isort
args: args:
# https://github.com/pre-commit/mirrors-isort/issues/9#issuecomment-624404082 # https://github.com/pre-commit/mirrors-isort/issues/9#issuecomment-624404082
- --filter-files - --filter-files
- repo: https://github.com/python/black.git - repo: https://github.com/python/black.git
rev: 21.4b2 rev: 22.10.0
hooks: hooks:
- id: black - id: black
language_version: python3 language_version: python3
- repo: https://github.com/pycqa/flake8.git - repo: https://github.com/pycqa/flake8.git
rev: 3.9.1 rev: 5.0.4
hooks: hooks:
- id: flake8 - id: flake8
language_version: python3 language_version: python3

View File

@ -6,9 +6,9 @@
jobs: jobs:
- openstack-tox-linters - openstack-tox-linters
- openstack-tox-py38 - openstack-tox-py38
# Deliberately avoid tripleo queue on this repository because it would # Deliberately avoid tripleo queue on this repository because it would
# slowdown changes, where most are of urgent nature, like updating the # slowdown changes, where most are of urgent nature, like updating the
# list of queries. This repository is not supposed to use any # list of queries. This repository is not supposed to use any
# dependencies on other changes. # dependencies on other changes.
queue: system-config queue: system-config
gate: *jobs gate: *jobs