Skip to content

Commit

Permalink
Updated to latest black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
AWhetter committed Feb 9, 2022
1 parent 71c6cee commit 685d1d3
Show file tree
Hide file tree
Showing 20 changed files with 54 additions and 53 deletions.
2 changes: 1 addition & 1 deletion autoapi/documenters.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def add_directive_header(self, sig):

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:
Expand Down
4 changes: 2 additions & 2 deletions autoapi/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions tests/dotnetexample/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions tests/goexample/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions tests/jsexample/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions tests/python/py38positionalparams/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions tests/python/py3example/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions tests/python/py3implicitnamespace/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions tests/python/pyannotationcommentsexample/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions tests/python/pyautodoc_typehints/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions tests/python/pyexample/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions tests/python/pyiexample/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/python/pyiexample/example/example.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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"""

Expand Down
6 changes: 3 additions & 3 deletions tests/python/pyiexample2/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions tests/python/pypackagecomplex/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions tests/python/pypackageexample/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions tests/python/pyskipexample/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions tests/templateexample/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tests/test_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ def test_filename(self):
{"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):
Expand Down
6 changes: 3 additions & 3 deletions tests/toctreeexample/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 685d1d3

Please sign in to comment.