Check pep8 without ignoring D000

Currently, pep8 ignores D000 check because of error:
"D000 Cannot analyze code. Pygments package not found."

Pygments is supported from:
https://review.openstack.org/#/c/568729/

This patch also changed code-block type from "none" to "ini"
as D000 check does not allow the "none" type.

Change-Id: I05d1d41160ad86589308912ff81c4294983069ff
This commit is contained in:
Dao Cong Tien 2018-05-30 16:09:48 +07:00
parent 4b4db7e98c
commit b3a0f3bfe4
3 changed files with 5 additions and 5 deletions

View File

@ -17,7 +17,7 @@ How to run FWaaS V2 in DevStack
Add the following to the localrc section of your local.conf to configure
FWaaS v2.
.. code-block:: none
.. code-block:: ini
[[local|localrc]]
enable_plugin neutron-fwaas https://git.openstack.org/openstack/neutron-fwaas
@ -27,7 +27,7 @@ To check a specific patchset that is currently under development, use a form
like the below example, which is checking out change 214350 patch set 14 for
testing.
.. code-block:: none
.. code-block:: ini
[[local|localrc]]
enable_plugin neutron-fwaas https://review.openstack.org/p/openstack/neutron-fwaas refs/changes/50/214350/14
@ -39,7 +39,7 @@ How to run FWaaS V1 in DevStack
Add the following to the localrc section of your local.conf to configure
FWaaS v1.
.. code-block:: none
.. code-block:: ini
[[local|localrc]]
enable_plugin neutron-fwaas https://git.openstack.org/openstack/neutron-fwaas
@ -49,7 +49,7 @@ To check a specific patchset that is currently under development, use a form
like the below example, which is checking out change 214350 patch set 14 for
testing.
.. code-block:: none
.. code-block:: ini
[[local|localrc]]
enable_plugin neutron-fwaas https://review.openstack.org/p/openstack/neutron-fwaas refs/changes/50/214350/14

View File

@ -20,3 +20,4 @@ oslotest>=3.2.0 # Apache-2.0
PyMySQL>=0.7.6 # MIT License
psycopg2>=2.6.2 # LGPL/ZPL
doc8>=0.6.0 # Apache-2.0
Pygments>=2.2.0 # BSD

View File

@ -83,7 +83,6 @@ deps = -r{toxinidir}/doc/requirements.txt
commands = sphinx-build -W -b html doc/source doc/build/html
[doc8]
ignore = D000
ignore-path = .venv,.git,.tox,.tmp,*neutron_fwaas/locale*,*lib/python*,neutron_fwaas.egg*,doc/build,releasenotes/*,doc/source/contributor/api
[flake8]