Updated to latest black formatting

pull/331/head
Ashley Whetter 2 years ago
parent 71c6ceebe0
commit 685d1d34c8

@ -165,7 +165,7 @@ class AutoapiClassDocumenter(
if self.options.show_inheritance:
sourcename = self.get_sourcename()
self.add_line(u"", sourcename)
self.add_line("", sourcename)
# TODO: Change sphinx to allow overriding of getting base names
if self.object.bases:

@ -219,8 +219,8 @@ def doctree_read(app, doctree):
insert = False
if insert and app.config.autoapi_add_toctree_entry:
# Insert AutoAPI index
nodes[-1]["entries"].append((None, u"%s/index" % app.config.autoapi_root))
nodes[-1]["includefiles"].append(u"%s/index" % app.config.autoapi_root)
nodes[-1]["entries"].append((None, "%s/index" % app.config.autoapi_root))
nodes[-1]["includefiles"].append("%s/index" % app.config.autoapi_root)
message_prefix = bold("[AutoAPI] ")
message = darkgreen(
"Adding AutoAPI TOCTree [{0}] to index.rst".format(toc_entry)

@ -3,9 +3,9 @@
templates_path = ["_templates"]
source_suffix = ".rst"
master_doc = "index"
project = u"dotnetexample"
copyright = u"2015, readthedocs"
author = u"readthedocs"
project = "dotnetexample"
copyright = "2015, readthedocs"
author = "readthedocs"
version = "0.1"
release = "0.1"
language = None

@ -3,9 +3,9 @@
templates_path = ["_templates"]
source_suffix = ".rst"
master_doc = "index"
project = u"goexample"
copyright = u"2015, readthedocs"
author = u"readthedocs"
project = "goexample"
copyright = "2015, readthedocs"
author = "readthedocs"
version = "0.1"
release = "0.1"
language = None

@ -3,9 +3,9 @@
templates_path = ["_templates"]
source_suffix = ".rst"
master_doc = "index"
project = u"jsexample"
copyright = u"2015, readthedocs"
author = u"readthedocs"
project = "jsexample"
copyright = "2015, readthedocs"
author = "readthedocs"
version = "0.1"
release = "0.1"
language = None

@ -3,9 +3,9 @@
templates_path = ["_templates"]
source_suffix = ".rst"
master_doc = "index"
project = u"pyexample"
copyright = u"2015, readthedocs"
author = u"readthedocs"
project = "pyexample"
copyright = "2015, readthedocs"
author = "readthedocs"
version = "0.1"
release = "0.1"
language = None

@ -3,9 +3,9 @@
templates_path = ["_templates"]
source_suffix = ".rst"
master_doc = "index"
project = u"pyexample"
copyright = u"2015, readthedocs"
author = u"readthedocs"
project = "pyexample"
copyright = "2015, readthedocs"
author = "readthedocs"
version = "0.1"
release = "0.1"
language = None

@ -3,9 +3,9 @@
templates_path = ["_templates"]
source_suffix = ".rst"
master_doc = "index"
project = u"pyexample"
copyright = u"2015, readthedocs"
author = u"readthedocs"
project = "pyexample"
copyright = "2015, readthedocs"
author = "readthedocs"
version = "0.1"
release = "0.1"
language = None

@ -3,9 +3,9 @@
templates_path = ["_templates"]
source_suffix = ".rst"
master_doc = "index"
project = u"pyexample"
copyright = u"2015, readthedocs"
author = u"readthedocs"
project = "pyexample"
copyright = "2015, readthedocs"
author = "readthedocs"
version = "0.1"
release = "0.1"
language = None

@ -3,9 +3,9 @@
templates_path = ["_templates"]
source_suffix = ".rst"
master_doc = "index"
project = u"pyexample"
copyright = u"2015, readthedocs"
author = u"readthedocs"
project = "pyexample"
copyright = "2015, readthedocs"
author = "readthedocs"
version = "0.1"
release = "0.1"
language = None

@ -3,9 +3,9 @@
templates_path = ["_templates"]
source_suffix = ".rst"
master_doc = "index"
project = u"pyexample"
copyright = u"2015, readthedocs"
author = u"readthedocs"
project = "pyexample"
copyright = "2015, readthedocs"
author = "readthedocs"
version = "0.1"
release = "0.1"
language = None

@ -3,9 +3,9 @@
templates_path = ["_templates"]
source_suffix = ".rst"
master_doc = "index"
project = u"pyexample"
copyright = u"2015, readthedocs"
author = u"readthedocs"
project = "pyexample"
copyright = "2015, readthedocs"
author = "readthedocs"
version = "0.1"
release = "0.1"
language = None

@ -18,6 +18,7 @@ class Foo(object):
class_var_without_value = ...
"""A class var without a value."""
class Meta(object):
"""A nested class just to test things out"""

@ -3,9 +3,9 @@
templates_path = ["_templates"]
source_suffix = ".rst"
master_doc = "index"
project = u"pyexample"
copyright = u"2015, readthedocs"
author = u"readthedocs"
project = "pyexample"
copyright = "2015, readthedocs"
author = "readthedocs"
version = "0.1"
release = "0.1"
language = None

@ -3,9 +3,9 @@
templates_path = ["_templates"]
source_suffix = ".rst"
master_doc = "index"
project = u"pypackagecomplex"
copyright = u"2015, readthedocs"
author = u"readthedocs"
project = "pypackagecomplex"
copyright = "2015, readthedocs"
author = "readthedocs"
version = "0.1"
release = "0.1"
language = None

@ -3,9 +3,9 @@
templates_path = ["_templates"]
source_suffix = ".rst"
master_doc = "index"
project = u"pypackageexample"
copyright = u"2015, readthedocs"
author = u"readthedocs"
project = "pypackageexample"
copyright = "2015, readthedocs"
author = "readthedocs"
version = "0.1"
release = "0.1"
language = None

@ -3,9 +3,9 @@
templates_path = ["_templates"]
source_suffix = ".rst"
master_doc = "index"
project = u"pyexample"
copyright = u"2015, readthedocs"
author = u"readthedocs"
project = "pyexample"
copyright = "2015, readthedocs"
author = "readthedocs"
version = "0.1"
release = "0.1"
language = None

@ -3,9 +3,9 @@
templates_path = ["_templates"]
source_suffix = ".rst"
master_doc = "index"
project = u"pyexample"
copyright = u"2015, readthedocs"
author = u"readthedocs"
project = "pyexample"
copyright = "2015, readthedocs"
author = "readthedocs"
version = "0.1"
release = "0.1"
language = None

@ -121,9 +121,9 @@ class TestDotNetObject:
{"id": "Foo.Foo-Bar.Widget<T>(TFoo)"}, jinja_env=None, app=None
)
assert cls.pathname == os.path.join("Foo", "FooBar", "Widget-T")
cls = dotnet.DotNetClass({"id": u"Foo.Bär"}, jinja_env=None, app=None)
cls = dotnet.DotNetClass({"id": "Foo.Bär"}, jinja_env=None, app=None)
assert cls.pathname == os.path.join("Foo", "Bar")
cls = dotnet.DotNetClass({"id": u"Ащщ.юИфк"}, jinja_env=None, app=None)
cls = dotnet.DotNetClass({"id": "Ащщ.юИфк"}, jinja_env=None, app=None)
assert cls.pathname == os.path.join("Ashchshch", "iuIfk")
def test_rendered_class_escaping(self):

@ -3,9 +3,9 @@
templates_path = ["_templates"]
source_suffix = ".rst"
master_doc = "index"
project = u"pyexample"
copyright = u"2015, readthedocs"
author = u"readthedocs"
project = "pyexample"
copyright = "2015, readthedocs"
author = "readthedocs"
version = "0.1"
release = "0.1"
language = None

Loading…
Cancel
Save