bump some pre-commit hooks and remove default cfg

Removed default config options while bumping the versions of some
pre-commit hooks. Moved the configuration of doc8 to pyproject.toml to
hopefully consolidate everything in one place. Enable codespell hook to
correct the spelling for users.

Change-Id: I76933b52ed8009f5e97c382b82dd786adf3a5444
Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
This commit is contained in:
Doug Goldstein 2024-11-09 12:22:05 -05:00
parent 488bc76cab
commit 5cf5f6f275
No known key found for this signature in database
2 changed files with 7 additions and 11 deletions

View File

@ -47,13 +47,13 @@ repos:
rev: v2.2.6 rev: v2.2.6
hooks: hooks:
- id: codespell - id: codespell
args: [--write-changes]
- repo: https://github.com/sphinx-contrib/sphinx-lint - repo: https://github.com/sphinx-contrib/sphinx-lint
rev: v0.6.8 rev: v1.0.0
hooks: hooks:
- id: sphinx-lint - id: sphinx-lint
args: [--enable=default-role] args: [--enable=default-role]
files: ^doc/|releasenotes|api-ref files: ^doc/|releasenotes|api-ref
types: [rst]
- repo: https://opendev.org/openstack/bashate - repo: https://opendev.org/openstack/bashate
rev: 2.1.0 rev: 2.1.0
hooks: hooks:
@ -77,19 +77,12 @@ repos:
types: [ python ] types: [ python ]
require_serial: true require_serial: true
- repo: https://github.com/PyCQA/doc8 - repo: https://github.com/PyCQA/doc8
rev: v1.1.1 rev: v1.1.2
hooks: hooks:
- id: doc8 - id: doc8
args: ["--ignore", "D001"]
name: doc8
description: This hook runs doc8 for linting docs
entry: python -m doc8
language: python
files: \.rst$
require_serial: true
- repo: local - repo: local
hooks: hooks:
- id: check-releasenotes - id: check-releasenotes
name: check-releasenotes name: check-releasenotes
language: python language: python
entry: python tools/check-releasenotes.py entry: python tools/check-releasenotes.py

View File

@ -1,3 +1,6 @@
[build-system] [build-system]
requires = ["pbr>=6.0.0", "setuptools>=64.0.0"] requires = ["pbr>=6.0.0", "setuptools>=64.0.0"]
build-backend = "pbr.build" build-backend = "pbr.build"
[tool.doc8]
ignore = ["D001"]