From 8dbe8b8cda6ebb28175292f5a24f358252eec8db Mon Sep 17 00:00:00 2001 From: Fernando Ferraz Date: Thu, 24 Apr 2025 15:48:25 -0300 Subject: [PATCH] tox: Match doc8 ignore-path with flake8 exclude parameters MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Differently from flake8, the current tox doc8 setup isn’t configured to the exclude the commonly used directories ``.venv`` and ``.git``, which can be inconvenient in development environments. This path includes ``.venv`` and ``.git`` directories to the ignore-path parameter in tox, as found in flake8's ``exclude`` setting. Change-Id: Ie8b05afb3f4dc6142ad8415a3cbdeb2584e8f900 --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index b10162a27da..df722e861b7 100644 --- a/tox.ini +++ b/tox.ini @@ -268,7 +268,7 @@ extension = paths = ./cinder/tests/hacking [doc8] -ignore-path=.tox,*.egg-info,doc/src/api,doc/source/drivers.rst,doc/build,.eggs,doc/source/configuration/tables,./*.txt,releasenotes,doc/source/contributor/api,doc/test +ignore-path=.venv,.git,.tox,*.egg-info,doc/src/api,doc/source/drivers.rst,doc/build,.eggs,doc/source/configuration/tables,./*.txt,releasenotes,doc/source/contributor/api,doc/test extension=.txt,.rst,.inc [testenv:ruff]