tripleo-ci-health-queries/.pre-commit-config.yaml
frenzyfriday 6095c7426d 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
2022-10-27 12:13:14 +02:00

47 lines
1.3 KiB
YAML

---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v4.3.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: mixed-line-ending
- id: check-byte-order-marker
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: debug-statements
language_version: python3
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.28.0
hooks:
- id: yamllint
files: \.(yaml|yml)$
types: [file, yaml]
entry: yamllint --strict
- id: yamllint
name: queries-key-ordering
files: src\/data\/queries\.yml$
entry: >
yamllint --strict -d "rules: { key-ordering: enable }"
- repo: https://github.com/pre-commit/mirrors-isort
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: 22.10.0
hooks:
- id: black
language_version: python3
- repo: https://github.com/pycqa/flake8.git
rev: 5.0.4
hooks:
- id: flake8
language_version: python3
additional_dependencies:
- flake8-2020>=1.6.0
- flake8-docstrings>=1.5.0
- flake8-pytest-style>=1.2.2