Skip to content

Commit

Permalink
fix doc8 config parsing error (depends on PyCQA/doc8#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmigneault committed Sep 5, 2023
1 parent dea3bf8 commit d5b8cf7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit d5b8cf7

Please sign in to comment.