Skip to content

Commit dd634fa

Browse files
Merge pull request #124 from NeuroML/feat/format-with-black
feat: format with black
2 parents d0f58ca + 55080ab commit dd634fa

40 files changed

+4580
-3009
lines changed

docs/source/conf.py

Lines changed: 80 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -12,152 +12,157 @@
1212
#
1313
import os
1414
import sys
15-
sys.path.insert(0, os.path.abspath('../../'))
15+
16+
sys.path.insert(0, os.path.abspath("../../"))
1617

1718

1819
# -- Project information -----------------------------------------------------
1920

20-
project = 'PyNeuroML'
21-
copyright = '2021, NeuroML contributors'
22-
author = 'NeuroML contributors'
21+
project = "PyNeuroML"
22+
copyright = "2021, NeuroML contributors"
23+
author = "NeuroML contributors"
2324

2425

2526
# -- General configuration ---------------------------------------------------
2627

2728
# Add any Sphinx extension module names here, as strings. They can be
2829
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
2930
# ones.
30-
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.todo',
31-
'sphinxcontrib.bibtex']
31+
extensions = [
32+
"sphinx.ext.autodoc",
33+
"sphinx.ext.doctest",
34+
"sphinx.ext.todo",
35+
"sphinxcontrib.bibtex",
36+
]
3237

33-
bibtex_bibfiles = ['refs.bib']
38+
bibtex_bibfiles = ["refs.bib"]
3439

3540
# Add any paths that contain templates here, relative to this directory.
36-
templates_path = ['_templates']
41+
templates_path = ["_templates"]
3742

3843
# The short X.Y version.
3944
version = ""
40-
for aline in open('../../pyneuroml/__init__.py'):
45+
for aline in open("../../pyneuroml/__init__.py"):
4146
# space here is important since __version__ is used in generation of
4247
# version_info also
43-
if '__version__ =' in aline:
44-
version = aline.split("'")[1]
48+
if "__version__ =" in aline:
49+
version = aline.split("\"")[1]
4550
# The full version, including alpha/beta/rc tags.
4651
release = version
4752

4853
# The language for content autogenerated by Sphinx. Refer to documentation
4954
# for a list of supported languages.
50-
#language = None
55+
# language = None
5156

5257
# There are two options for replacing |today|: either, you set today to some
5358
# non-false value, then it is used:
54-
#today = ''
59+
# today = ''
5560
# Else, today_fmt is used as the format for a strftime call.
56-
#today_fmt = '%B %d, %Y'
61+
# today_fmt = '%B %d, %Y'
5762

5863
# List of patterns, relative to source directory, that match files and
5964
# directories to ignore when looking for source files.
60-
exclude_patterns = ['_build']
65+
exclude_patterns = ["_build"]
6166

6267
# The reST default role (used for this markup: `text`) to use for all documents.
63-
#default_role = None
68+
# default_role = None
6469

6570
# If true, '()' will be appended to :func: etc. cross-reference text.
66-
#add_function_parentheses = True
71+
# add_function_parentheses = True
6772

6873
# If true, the current module name will be prepended to all description
6974
# unit titles (such as .. function::).
70-
#add_module_names = True
75+
# add_module_names = True
7176

7277
# If true, sectionauthor and moduleauthor directives will be shown in the
7378
# output. They are ignored by default.
74-
#show_authors = False
79+
# show_authors = False
7580

7681
# The name of the Pygments (syntax highlighting) style to use.
77-
pygments_style = 'sphinx'
82+
pygments_style = "sphinx"
7883

7984
# A list of ignored prefixes for module index sorting.
80-
#modindex_common_prefix = []
85+
# modindex_common_prefix = []
8186

8287

8388
# -- Options for HTML output ---------------------------------------------------
8489

8590
# The theme to use for HTML and HTML Help pages. See the documentation for
8691
# a list of builtin themes.
87-
html_theme = 'nature'
92+
html_theme = "nature"
8893

8994
# Theme options are theme-specific and customize the look and feel of a theme
9095
# further. For a list of options available for each theme, see the
9196
# documentation.
92-
#html_theme_options = {}
97+
# html_theme_options = {}
9398

9499
# Add any paths that contain custom themes here, relative to this directory.
95-
#html_theme_path = []
100+
# html_theme_path = []
96101

97102
# The name for this set of Sphinx documents. If None, it defaults to
98103
# "<project> v<release> documentation".
99-
#html_title = None
104+
# html_title = None
100105

101106
# A shorter title for the navigation bar. Default is the same as html_title.
102-
#html_short_title = None
107+
# html_short_title = None
103108

104109
# The name of an image file (relative to this directory) to place at the top
105110
# of the sidebar.
106-
html_logo = '_static/neuroml_logo.png'
111+
html_logo = "_static/neuroml_logo.png"
107112

108113
# The name of an image file (within the static path) to use as favicon of the
109114
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
110115
# pixels large.
111-
#html_favicon = None
116+
# html_favicon = None
112117

113118
# Add any paths that contain custom static files (such as style sheets) here,
114119
# relative to this directory. They are copied after the builtin static files,
115120
# so a file named "default.css" will overwrite the builtin "default.css".
116-
html_static_path = ['_static']
121+
html_static_path = ["_static"]
117122

118123
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
119124
# using the given strftime format.
120-
#html_last_updated_fmt = '%b %d, %Y'
125+
# html_last_updated_fmt = '%b %d, %Y'
121126

122127
# If true, SmartyPants will be used to convert quotes and dashes to
123128
# typographically correct entities.
124-
#html_use_smartypants = True
129+
# html_use_smartypants = True
125130

126131
# Custom sidebar templates, maps document names to template names.
127-
#html_sidebars = {}
132+
# html_sidebars = {}
128133

129134
# Additional templates that should be rendered to pages, maps page names to
130135
# template names.
131-
#html_additional_pages = {}
136+
# html_additional_pages = {}
132137

133138
# If false, no module index is generated.
134-
#html_domain_indices = True
139+
# html_domain_indices = True
135140

136141
# If false, no index is generated.
137-
#html_use_index = True
142+
# html_use_index = True
138143

139144
# If true, the index is split into individual pages for each letter.
140-
#html_split_index = False
145+
# html_split_index = False
141146

142147
# If true, links to the reST sources are added to the pages.
143-
#html_show_sourcelink = True
148+
# html_show_sourcelink = True
144149

145150
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
146-
#html_show_sphinx = True
151+
# html_show_sphinx = True
147152

148153
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
149-
#html_show_copyright = True
154+
# html_show_copyright = True
150155

151156
# If true, an OpenSearch description file will be output, and all pages will
152157
# contain a <link> tag referring to it. The value of this option must be the
153158
# base URL from which the finished HTML is served.
154-
#html_use_opensearch = ''
159+
# html_use_opensearch = ''
155160

156161
# This is the file name suffix for HTML files (e.g. ".xhtml").
157-
#html_file_suffix = None
162+
# html_file_suffix = None
158163

159164
# Output file base name for HTML help builder.
160-
htmlhelp_basename = 'PyNeuroMLdoc'
165+
htmlhelp_basename = "PyNeuroMLdoc"
161166

162167

163168
# -- Options for LaTeX output --------------------------------------------------
@@ -175,42 +180,52 @@
175180
# Grouping the document tree into LaTeX files. List of tuples
176181
# (source start file, target name, title, author, documentclass [howto/manual]).
177182
latex_documents = [
178-
('index', 'PyNeuroML.tex', 'PyNeuroML Documentation',
179-
'PyNeuroML authors and contributors', 'manual'),
183+
(
184+
"index",
185+
"PyNeuroML.tex",
186+
"PyNeuroML Documentation",
187+
"PyNeuroML authors and contributors",
188+
"manual",
189+
),
180190
]
181191

182192
# The name of an image file (relative to this directory) to place at the top of
183193
# the title page.
184-
#latex_logo = None
194+
# latex_logo = None
185195

186196
# For "manual" documents, if this is true, then toplevel headings are parts,
187197
# not chapters.
188-
#latex_use_parts = False
198+
# latex_use_parts = False
189199

190200
# If true, show page references after internal links.
191-
#latex_show_pagerefs = False
201+
# latex_show_pagerefs = False
192202

193203
# If true, show URL addresses after external links.
194-
#latex_show_urls = False
204+
# latex_show_urls = False
195205

196206
# Documents to append as an appendix to all manuals.
197-
#latex_appendices = []
207+
# latex_appendices = []
198208

199209
# If false, no module index is generated.
200-
#latex_domain_indices = True
210+
# latex_domain_indices = True
201211

202212

203213
# -- Options for manual page output --------------------------------------------
204214

205215
# One entry per manual page. List of tuples
206216
# (source start file, name, description, authors, manual section).
207217
man_pages = [
208-
('index', 'libneuroml', 'PyNeuroML Documentation',
209-
['PyNeuroML authors and contributors'], 1)
218+
(
219+
"index",
220+
"libneuroml",
221+
"PyNeuroML Documentation",
222+
["PyNeuroML authors and contributors"],
223+
1,
224+
)
210225
]
211226

212227
# If true, show URL addresses after external links.
213-
#man_show_urls = False
228+
# man_show_urls = False
214229

215230

216231
# -- Options for Texinfo output ------------------------------------------------
@@ -219,16 +234,22 @@
219234
# (source start file, target name, title, author,
220235
# dir menu entry, description, category)
221236
texinfo_documents = [
222-
('index', 'PyNeuroML', 'PyNeuroML Documentation',
223-
'PyNeuroML authors and contributors', 'PyNeuroML', 'This package provides PyNeuroML for working with neuronal models specified in NeuroML 2.',
224-
'Miscellaneous'),
237+
(
238+
"index",
239+
"PyNeuroML",
240+
"PyNeuroML Documentation",
241+
"PyNeuroML authors and contributors",
242+
"PyNeuroML",
243+
"This package provides PyNeuroML for working with neuronal models specified in NeuroML 2.",
244+
"Miscellaneous",
245+
),
225246
]
226247

227248
# Documents to append as an appendix to all manuals.
228-
#texinfo_appendices = []
249+
# texinfo_appendices = []
229250

230251
# If false, no module index is generated.
231-
#texinfo_domain_indices = True
252+
# texinfo_domain_indices = True
232253

233254
# How to display URL addresses: 'footnote', 'no', or 'inline'.
234-
#texinfo_show_urls = 'footnote'
255+
# texinfo_show_urls = 'footnote'

0 commit comments

Comments
 (0)