From d5b8cf78fc9decfb8841196194ef579f41848bd9 Mon Sep 17 00:00:00 2001 From: Francis Charette Migneault Date: Tue, 5 Sep 2023 12:15:37 -0400 Subject: [PATCH] fix doc8 config parsing error (depends on https://github.com/PyCQA/doc8/pull/148) --- Makefile | 5 +---- requirements-dev.txt | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 186b3857f..4f566278d 100644 --- a/Makefile +++ b/Makefile @@ -564,10 +564,7 @@ check-security-code-only: mkdir-reports ## run security checks on source code .PHONY: check-docs-only check-docs-only: check-doc8-only check-docf-only check-links-only ## run every code documentation checks -# FIXME: temporary workaround (https://github.com/PyCQA/doc8/issues/145 and https://github.com/PyCQA/doc8/issues/147) -# configuration somehow not picked up directly from setup.cfg in python 3.11 -# setting 'ignore-path-errors' not working without the full path (relative 'docs/changes.rst' fails) -CHECK_DOC8_XARGS := --ignore-path-errors "$(APP_ROOT)/docs/changes.rst;D000" +CHECK_DOC8_XARGS ?= .PHONY: check-doc8-only check-doc8-only: mkdir-reports ## run PEP8 documentation style checks diff --git a/requirements-dev.txt b/requirements-dev.txt index 9d4450d74..6423961b5 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -10,7 +10,7 @@ codacy-coverage>=1.3.11 coverage==5.5; python_version < "3" # pyup: ignore coverage>=5.5; python_version >= "3" doc8; python_version < "3.6" -doc8>=0.8; python_version >= "3.6" +doc8>=1.1.2; python_version >= "3.7" docformatter==1.4; python_version < "3.6" # pyup: ignore docformatter; python_version >= "3.6" flake8; python_version < "3.6"