Add doc8 to pep8 check for project
This patch adds a doc8 check of .rst files to the current pep8 check. It includes fixes to the .rst files that didn't pass the check. Change-Id: If9c6fbf51033cd420c605443dbb3049535024697
This commit is contained in:
parent
4885ce18ae
commit
727ffb14d3
@ -13,7 +13,7 @@ Barbican Specific Commandments
|
||||
- [B311] Use assertIsNone(...) instead of assertEqual(None, ...).
|
||||
- [B312] Use assertTrue(...) rather than assertEqual(True, ...).
|
||||
- [B314] str() and unicode() cannot be used on an exception. Remove or use six.text_type().
|
||||
- [B317] 'oslo_' should be used instead of 'oslo.'
|
||||
- [B317] `oslo_` should be used instead of `oslo`.
|
||||
- [B318] Must use a dict comprehension instead of a dict constructor
|
||||
with a sequence of key-value pairs.
|
||||
- [B319] Ensure to not use xrange().
|
||||
|
@ -48,7 +48,7 @@ project quotas are enforced for that project. Default quotas are specified
|
||||
in the barbican configuration file (barbican.conf). The defaults provided
|
||||
in the standard configuration file are as follows.
|
||||
|
||||
.. code-block:: none
|
||||
.. code-block:: ini
|
||||
|
||||
# default number of secrets allowed per project
|
||||
quota_secrets = -1
|
||||
|
@ -195,7 +195,6 @@ list of provided users from an ACL definition, pass empty list [] for `users`.
|
||||
Returns an ACL reference in success case.
|
||||
|
||||
.. note::
|
||||
|
||||
PATCH API support will be changing in near future.
|
||||
|
||||
Attributes
|
||||
@ -493,7 +492,6 @@ list of provided users from an ACL definition, pass empty list [] for `users`.
|
||||
Returns an ACL reference in success case.
|
||||
|
||||
.. note::
|
||||
|
||||
PATCH API support will be changing in near future.
|
||||
|
||||
Attributes
|
||||
|
@ -47,7 +47,7 @@ Request:
|
||||
Response:
|
||||
*********
|
||||
|
||||
.. code-block:: none
|
||||
.. code-block:: bash
|
||||
|
||||
200 Success
|
||||
|
||||
@ -181,7 +181,7 @@ Request:
|
||||
Response:
|
||||
*********
|
||||
|
||||
.. code-block:: none
|
||||
.. code-block:: bash
|
||||
|
||||
202 Created
|
||||
|
||||
|
@ -62,7 +62,7 @@ be prefixed with any of these comparison operators: ``gt:`` (greater-than),
|
||||
|
||||
For example, to get a list of secrets that will expire in January of 2020:
|
||||
|
||||
.. code-block:: none
|
||||
.. code-block:: ini
|
||||
|
||||
GET /v1/secrets?expiration=gte:2020-01-01T00:00:00,lt:2020-02-01T00:00:00
|
||||
|
||||
@ -79,7 +79,7 @@ use ``:asc`` for every key that does not include a direction.
|
||||
|
||||
For example, to sort the list from most recently created to oldest:
|
||||
|
||||
.. code-block:: none
|
||||
.. code-block:: ini
|
||||
|
||||
GET /v1/secrets?sort=created:desc
|
||||
|
||||
|
@ -24,6 +24,7 @@ docutils==0.14
|
||||
dogpile.cache==0.6.5
|
||||
dogtag-pki==10.3.5.1
|
||||
dulwich==0.19.0
|
||||
doc8==0.6.0
|
||||
enum-compat==0.0.2
|
||||
enum34==1.1.6
|
||||
eventlet==0.18.2
|
||||
|
@ -20,3 +20,6 @@ tempest>=17.1.0 # Apache-2.0
|
||||
|
||||
# Bandit build requirements
|
||||
bandit>=1.1.0 # Apache-2.0
|
||||
|
||||
doc8>=0.6.0 # Apache-2.0
|
||||
Pygments>=2.2.0 # BSD license
|
||||
|
5
tox.ini
5
tox.ini
@ -46,6 +46,7 @@ commands =
|
||||
basepython = python3
|
||||
sitepackages = False
|
||||
commands =
|
||||
doc8 {posargs}
|
||||
flake8 {posargs}
|
||||
# Run security linter
|
||||
bandit -r barbican -x tests -n5
|
||||
@ -141,6 +142,10 @@ commands =
|
||||
coverage html -d cover
|
||||
coverage xml -o cover/coverage.xml
|
||||
|
||||
[doc8]
|
||||
ignore = D001
|
||||
ignore-path = .venv,.git,.tox,.tmp,*barbican/locale*,*lib/python*,barbican.egg*,doc/build,releasenotes/*,doc/source/contributor/api
|
||||
|
||||
[flake8]
|
||||
filename = *.py,app.wsgi
|
||||
exclude = .git,.idea,.tox,bin,dist,debian,rpmbuild,tools,*.egg-info,*.eggs,contrib,
|
||||
|
Loading…
Reference in New Issue
Block a user