From 580d4338e2bce8e557a5007fcba85e157f0b8d60 Mon Sep 17 00:00:00 2001 From: Dao Cong Tien Date: Thu, 24 May 2018 08:33:56 +0700 Subject: [PATCH] Check pep8 without ignoring D000 Currently, ironic ignores D000 check because of error: "D000 Cannot analyze code. Pygments package not found." Pygments is supported from: https://review.openstack.org/#/c/568729/ Change-Id: Ib942f47abf6facaf9967603914326aa3cb79bbd9 --- test-requirements.txt | 1 + tox.ini | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/test-requirements.txt b/test-requirements.txt index 69df30c037..8bfb2dd3d3 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -18,3 +18,4 @@ testscenarios>=0.4 # Apache-2.0/BSD WebTest>=2.0.27 # MIT bashate>=0.5.1 # Apache-2.0 flake8-import-order>=0.13 # LGPLv3 +Pygments>=2.2.0 # BSD diff --git a/tox.ini b/tox.ini index 939cbddc0b..ed643faba8 100644 --- a/tox.ini +++ b/tox.ini @@ -35,7 +35,7 @@ commands = # the check and gate queues. {toxinidir}/tools/run_bashate.sh {toxinidir} # Check the *.rst files - doc8 README.rst CONTRIBUTING.rst doc/source --ignore D001 --ignore D000 + doc8 README.rst CONTRIBUTING.rst doc/source --ignore D001 # Check to make sure reno releasenotes created with 'reno new' {toxinidir}/tools/check-releasenotes.py