Skip to content

Commit 0a4d3c7

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Add doc linting to pep8 target"
2 parents 9a6c425 + d6530c4 commit 0a4d3c7

6 files changed

Lines changed: 34 additions & 19 deletions

File tree

HACKING.rst

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ Cinder Client Specific Commandments
1010

1111
General
1212
-------
13-
- Use 'raise' instead of 'raise e' to preserve original traceback or exception being reraised::
13+
- Use 'raise' instead of 'raise e' to preserve original traceback or exception
14+
being reraised::
1415

1516
except Exception as e:
1617
...
@@ -22,26 +23,28 @@ General
2223

2324
Release Notes
2425
-------------
25-
- Any patch that makes a change significant to the end consumer or deployer of an
26-
OpenStack environment should include a release note (new features, upgrade impacts,
27-
deprecated functionality, significant bug fixes, etc.)
26+
- Any patch that makes a change significant to the end consumer or deployer of
27+
an OpenStack environment should include a release note (new features, upgrade
28+
impacts, deprecated functionality, significant bug fixes, etc.)
2829

29-
- Cinder Client uses Reno for release notes management. See the `Reno Documentation`_
30-
for more details on its usage.
30+
- Cinder Client uses Reno for release notes management. See the `Reno
31+
Documentation`_ for more details on its usage.
3132

3233
.. _Reno Documentation: https://docs.openstack.org/reno/latest/
3334

34-
- As a quick example, when adding a new shell command for Awesome Storage Feature, one
35-
could perform the following steps to include a release note for the new feature:
35+
- As a quick example, when adding a new shell command for Awesome Storage
36+
Feature, one could perform the following steps to include a release note for
37+
the new feature::
3638

3739
$ tox -e venv -- reno new add-awesome-command
3840
$ vi releasenotes/notes/add-awesome-command-bb8bb8bb8bb8bb81.yaml
3941

40-
Remove the extra template text from the release note and update the details so it
41-
looks something like:
42+
Remove the extra template text from the release note and update the details
43+
so it looks something like::
4244

4345
---
4446
features:
4547
- Added shell command `cinder be-awesome` for Awesome Storage Feature.
4648

47-
- Include the generated release notes file when submitting your patch for review.
49+
- Include the generated release notes file when submitting your patch for
50+
review.

doc/source/contributor/functional_tests.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ For more information on these options and how to run tests, please see the
4040
Gotchas
4141
-------
4242

43-
The cinderclient.tests.functional.test_cli.CinderBackupTests.test_backup_create_and_delete
44-
test will fail in Devstack without c-bak service running, which requires Swift.
45-
Make sure Swift is enabled when you stack.sh by putting this in local.conf :
46-
enable_service s-proxy s-object s-container s-account
43+
The cinderclient.tests.functional.test_cli.CinderBackupTests.test_backup_create
44+
and_delete test will fail in Devstack without c-bak service running, which
45+
requires Swift. Make sure Swift is enabled when you stack.sh by putting this in
46+
local.conf::
47+
48+
enable_service s-proxy s-object s-container s-account

doc/source/index.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,11 @@ The following are kept for historical purposes.
221221
* Use Adapter from keystoneclient
222222
* Add support for Replication feature
223223
* Add pagination for Volume List
224+
* Note Connection refused --> Connection error commit:
225+
c9e7818f3f90ce761ad8ccd09181c705880a4266
226+
* Note Mask Passwords in log output commit:
227+
80582f2b860b2dadef7ae07bdbd8395bf03848b1
228+
224229

225230
.. _1325773: http://bugs.launchpad.net/python-cinderclient/+bug/1325773
226231
.. _1333257: http://bugs.launchpad.net/python-cinderclient/+bug/1333257
@@ -234,9 +239,6 @@ The following are kept for historical purposes.
234239
.. _1130572: http://bugs.launchpad.net/python-cinderclient/+bug/1130572
235240
.. _1156994: http://bugs.launchpad.net/python-cinderclient/+bug/1156994
236241

237-
** Note Connection refused --> Connection error commit: c9e7818f3f90ce761ad8ccd09181c705880a4266
238-
** Note Mask Passwords in log output commit: 80582f2b860b2dadef7ae07bdbd8395bf03848b1
239-
240242
1.0.9
241243
------
242244

lower-constraints.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ coverage==4.0
66
cryptography==2.1
77
ddt==1.0.1
88
debtcollector==1.2.0
9+
doc8==0.6.0
910
extras==1.0.0
1011
fasteners==0.7.0
1112
fixtures==3.0.0

test-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ tempest>=17.1.0 # Apache-2.0
1313
testtools>=2.2.0 # MIT
1414
stestr>=1.0.0 # Apache-2.0
1515
oslo.serialization!=2.19.1,>=2.18.0 # Apache-2.0
16+
doc8>=0.6.0 # Apache-2.0

tox.ini

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ commands = find . -type f -name "*.pyc" -delete
3030
whitelist_externals = find
3131

3232
[testenv:pep8]
33-
commands = flake8
33+
commands =
34+
flake8
35+
doc8
3436

3537
[testenv:pylint]
3638
deps =
@@ -107,6 +109,10 @@ show-source = True
107109
ignore = H404,H405,E122,E123,E128,E251,W504
108110
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
109111

112+
[doc8]
113+
ignore-path=.tox,*.egg-info,doc/src/api,doc/source/drivers.rst,doc/build,.eggs/*/EGG-INFO/*.txt,doc/so urce/configuration/tables,./*.txt,releasenotes/build,doc/source/cli/details.rst
114+
extension=.txt,.rst,.inc
115+
110116
[testenv:lower-constraints]
111117
deps =
112118
-c{toxinidir}/lower-constraints.txt

0 commit comments

Comments
 (0)