diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f94ae95d0d..cfaeb61c55 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -47,13 +47,13 @@ repos: rev: v2.2.6 hooks: - id: codespell + args: [--write-changes] - repo: https://github.com/sphinx-contrib/sphinx-lint - rev: v0.6.8 + rev: v1.0.0 hooks: - id: sphinx-lint args: [--enable=default-role] files: ^doc/|releasenotes|api-ref - types: [rst] - repo: https://opendev.org/openstack/bashate rev: 2.1.0 hooks: @@ -77,19 +77,12 @@ repos: types: [ python ] require_serial: true - repo: https://github.com/PyCQA/doc8 - rev: v1.1.1 + rev: v1.1.2 hooks: - 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 hooks: - id: check-releasenotes name: check-releasenotes language: python - entry: python tools/check-releasenotes.py \ No newline at end of file + entry: python tools/check-releasenotes.py diff --git a/pyproject.toml b/pyproject.toml index 5e862a9593..a9362f7167 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,6 @@ [build-system] requires = ["pbr>=6.0.0", "setuptools>=64.0.0"] build-backend = "pbr.build" + +[tool.doc8] +ignore = ["D001"]