Merge "Use native hook of bashate"

This commit is contained in:
Zuul 2025-12-09 11:58:22 +00:00 committed by Gerrit Code Review
commit a71b056a5b
3 changed files with 7 additions and 5 deletions

View file

@ -40,6 +40,12 @@ repos:
additional_dependencies:
- flake8-import-order~=0.18.2
exclude: '^(doc|releasenotes|tools|devstack)/.*$'
- repo: https://github.com/openstack/bashate
rev: 2.1.1
hooks:
- id: bashate
files: devstack/plugin.sh
exclude: '.tox/.*'
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.15.0
hooks:

View file

@ -1,6 +1,5 @@
hacking
flake8-docstrings
bashate~=2.1.0 # Apache-2.0
stestr>=1.0.0 # Apache-2.0
freezegun>=0.3.6 # Apache-2.0

View file

@ -19,14 +19,11 @@ allowlist_externals =
passenv = http_proxy,HTTP_PROXY,https_proxy,HTTPS_PROXY,no_proxy,NO_PROXY,PBR_VERSION
[testenv:pep8]
skip_install = true
deps =
{[testenv]deps}
pre-commit
commands =
pre-commit run --all-files --show-diff-on-failure
# Run bash8 during pep8 runs to ensure violations are caught by
# the check and gate queues
bashate devstack/plugin.sh
[testenv:fast8]
deps = {[testenv:pep8]deps}