Ignore fewer PEP8/flake8 rules
Reasons:
- code should be pythonicaly clean,
that is why number of ignored rules should reduced
Changes:
- E125, F811, H102, H103, F201, H23,
H302, F841, H301, H702, H703 rules are now enabled
Change-Id: Ibf4025162244d3c2f1278b49a76ec1527a729042
2013-12-10 18:49:20 +02:00
|
|
|
# Copyright 2011 OpenStack Foundation
|
|
|
|
# Copyright 2013 Rackspace Hosting
|
|
|
|
# Copyright 2013 Hewlett-Packard Development Company, L.P.
|
|
|
|
# Copyright 2013 Mirantis Inc.
|
|
|
|
# All Rights Reserved.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
|
|
# not use this file except in compliance with the License. You may obtain
|
|
|
|
# a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
# License for the specific language governing permissions and limitations
|
|
|
|
# under the License.
|
|
|
|
#
|
2012-07-16 15:16:27 -05:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
2015-02-11 18:29:18 -08:00
|
|
|
import sys
|
|
|
|
import os
|
|
|
|
|
|
|
|
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
|
|
|
ROOT = os.path.abspath(os.path.join(BASE_DIR, "..", ".."))
|
|
|
|
|
|
|
|
sys.path.insert(0, ROOT)
|
|
|
|
sys.path.insert(0, BASE_DIR)
|
|
|
|
|
2013-06-14 19:03:15 -04:00
|
|
|
extensions = [
|
|
|
|
'sphinx.ext.doctest',
|
2014-09-19 10:27:55 +02:00
|
|
|
'sphinx.ext.coverage',
|
2017-06-26 13:30:55 -05:00
|
|
|
'openstackdocstheme',
|
2018-03-19 21:09:12 +09:00
|
|
|
'sphinxcontrib.apidoc',
|
2013-06-14 19:03:15 -04:00
|
|
|
]
|
2012-07-16 15:16:27 -05:00
|
|
|
|
2018-03-19 21:09:12 +09:00
|
|
|
# sphinxcontrib.apidoc options
|
|
|
|
apidoc_module_dir = '../../troveclient'
|
|
|
|
apidoc_output_dir = 'reference/api'
|
|
|
|
apidoc_excluded_paths = [
|
|
|
|
'compat/tests/*',
|
|
|
|
'compat/tests',
|
|
|
|
'tests/*',
|
|
|
|
'tests']
|
|
|
|
apidoc_separate_modules = True
|
|
|
|
|
2017-06-26 13:30:55 -05:00
|
|
|
# openstackdocstheme options
|
2020-05-19 08:01:36 +02:00
|
|
|
openstackdocs_repo_name = 'openstack/python-troveclient'
|
|
|
|
openstackdocs_bug_project = 'python-troveclient'
|
|
|
|
openstackdocs_bug_tag = ''
|
2017-06-26 13:30:55 -05:00
|
|
|
html_theme = 'openstackdocs'
|
|
|
|
|
2012-07-16 15:16:27 -05:00
|
|
|
templates_path = ['_templates']
|
|
|
|
|
|
|
|
source_suffix = '.rst'
|
|
|
|
|
|
|
|
master_doc = 'index'
|
|
|
|
|
2021-01-03 13:03:32 +08:00
|
|
|
copyright = '2014, OpenStack Foundation'
|
2012-07-16 15:16:27 -05:00
|
|
|
|
|
|
|
exclude_trees = []
|
|
|
|
|
2020-05-19 08:01:36 +02:00
|
|
|
pygments_style = 'native'
|
2012-07-16 15:16:27 -05:00
|
|
|
|
2013-06-14 19:03:15 -04:00
|
|
|
htmlhelp_basename = 'python-troveclientdoc'
|
2012-07-16 15:16:27 -05:00
|
|
|
latex_documents = [
|
2021-01-03 13:03:32 +08:00
|
|
|
('index', 'python-troveclient.tex', 'python-troveclient Documentation',
|
|
|
|
'OpenStack', 'manual'),
|
2012-07-16 15:16:27 -05:00
|
|
|
]
|