From ac079bfa376b819c2d81fa9274754e3e4f280eae Mon Sep 17 00:00:00 2001 From: Nguyen Van Trung Date: Wed, 23 May 2018 23:16:14 +0700 Subject: [PATCH] Allow to check pep8 along with D000 This commit going to remove --ignore D000 which had raised following issues: "D000 Cannot analyze code. Pygments package not found." And they also fixed in https://review.openstack.org/#/c/568729/ Depends-On: https://review.openstack.org/#/c/570236/ Change-Id: I3f35c65d385dc65ccefbac608498ad85ff4a4d71 --- 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 49f1d85a9..5464d1ce6 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -15,3 +15,4 @@ testscenarios>=0.4 # Apache-2.0/BSD testtools>=2.2.0 # MIT PyYAML>=3.12 # MIT mock>=2.0.0 # BSD +Pygments>=2.2.0 # BSD license diff --git a/tox.ini b/tox.ini index edb3675ab..d1e9acf2b 100644 --- a/tox.ini +++ b/tox.ini @@ -15,7 +15,7 @@ commands = python setup.py test --slowest --testr-args='{posargs}' [testenv:pep8] commands = flake8 - doc8 doc/source releasenotes/source README.rst CONTRIBUTING.rst MISSION.rst HACKING.rst --ignore D000 + doc8 doc/source releasenotes/source README.rst CONTRIBUTING.rst MISSION.rst HACKING.rst [testenv:venv] commands = {posargs}