Browse Source

fixed pep8 issues in doc/source/conf.py

* E265 block comment should start with '# '
  * E101 indentation contains mixed spaces and tabs
  * W191 indentation contains tabs
  * E126 continuation line over-indented for hanging indent
  * W391 blank line at end of file

Also enabled doc/ to be checked by flake8 in tox.ini.

Change-Id: I6ef75ccffb94dd2df346e844d351ea477e560a42
changes/08/93508/2
Christian Berendt 7 years ago
parent
commit
70fb1ca1fc
2 changed files with 6 additions and 7 deletions
  1. +5
    -6
      doc/source/conf.py
  2. +1
    -1
      tox.ini

+ 5
- 6
doc/source/conf.py View File

@ -22,8 +22,8 @@ sys.path.insert(0, os.path.abspath('../..'))
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = [
'sphinx.ext.autodoc',
#'sphinx.ext.intersphinx',
#'oslo.sphinx'
# 'sphinx.ext.intersphinx',
# 'oslo.sphinx'
]
# autodoc generation is a bit aggressive and a nuisance when doing heavy
@ -72,7 +72,7 @@ latex_documents = [
]
# Example configuration for intersphinx: refer to the Python standard library.
#intersphinx_mapping = {'http://docs.python.org/': None}
# intersphinx_mapping = {'http://docs.python.org/': None}
# -- Options for manual page output -------------------------------------------
@ -82,8 +82,7 @@ man_pages = [
('man/openstack-doc-test', 'openstack-doc-test',
u'OpenStack documentation tools',
[u'OpenStack'], 1)
]
]
# If true, show URL addresses after external links.
#man_show_urls = False
# man_show_urls = False

+ 1
- 1
tox.ini View File

@ -25,4 +25,4 @@ commands = {posargs}
show-source = True
ignore = E123,E125,H803
builtins = _
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build
exclude=.venv,.git,.tox,dist,*openstack/common*,*lib/python*,*egg,build

Loading…
Cancel
Save