Skip to content

Commit 53c62b4

Browse files
committed
[qa] Switched to double quotes (black formatter)
1 parent 50218b5 commit 53c62b4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+1943
-1941
lines changed

docs/source/conf.py

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -33,36 +33,36 @@
3333
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
3434
# ones.
3535
extensions = [
36-
'sphinx.ext.autodoc',
37-
'sphinx.ext.viewcode',
38-
'openwisp.sphinx.theme',
36+
"sphinx.ext.autodoc",
37+
"sphinx.ext.viewcode",
38+
"openwisp.sphinx.theme",
3939
]
4040

4141
# Add any paths that contain templates here, relative to this directory.
42-
templates_path = ['_templates']
42+
templates_path = ["_templates"]
4343

4444
# The suffix(es) of source filenames.
4545
# You can specify multiple suffix as a list of string:
4646
# source_suffix = ['.rst', '.md']
47-
source_suffix = '.rst'
47+
source_suffix = ".rst"
4848

4949
# The encoding of source files.
5050
# source_encoding = 'utf-8-sig'
5151

5252
# The master toctree document.
53-
master_doc = 'index'
53+
master_doc = "index"
5454

5555
# General information about the project.
56-
project = u'netjsonconfig'
57-
copyright = u'{0}, OpenWISP.org'.format(datetime.date.today().year)
58-
author = u'Federico Capoano'
56+
project = "netjsonconfig"
57+
copyright = "{0}, OpenWISP.org".format(datetime.date.today().year)
58+
author = "Federico Capoano"
5959

6060
# The version info for the project you're documenting, acts as replacement for
6161
# |version| and |release|, also used in various other places throughout the
6262
# built documents.
6363
#
6464
# The short X.Y version.
65-
version = '{0}.{1}'.format(VERSION[0], VERSION[1])
65+
version = "{0}.{1}".format(VERSION[0], VERSION[1])
6666
# The full version, including alpha/beta/rc tags.
6767
release = get_version()
6868

@@ -71,7 +71,7 @@
7171
#
7272
# This is also used if you do content translation via gettext catalogs.
7373
# Usually you set "language" from the command line for these cases.
74-
language = 'en'
74+
language = "en"
7575

7676
# There are two options for replacing |today|: either, you set today to some
7777
# non-false value, then it is used:
@@ -99,7 +99,7 @@
9999
# show_authors = False
100100

101101
# The name of the Pygments (syntax highlighting) style to use.
102-
pygments_style = 'sphinx'
102+
pygments_style = "sphinx"
103103

104104
# A list of ignored prefixes for module index sorting.
105105
# modindex_common_prefix = []
@@ -115,9 +115,9 @@
115115

116116
# The theme to use for HTML and HTML Help pages. See the documentation for
117117
# a list of builtin themes.
118-
html_theme = 'openwisp-sphinx-theme'
119-
html_favicon = 'assets/design/favicon.png'
120-
html_logo = 'assets/design/netjson-logo-dark.png'
118+
html_theme = "openwisp-sphinx-theme"
119+
html_favicon = "assets/design/favicon.png"
120+
html_logo = "assets/design/netjson-logo-dark.png"
121121

122122
# Theme options are theme-specific and customize the look and feel of a theme
123123
# further. For a list of options available for each theme, see the
@@ -209,13 +209,13 @@
209209
# html_search_scorer = 'scorer.js'
210210

211211
# Output file base name for HTML help builder.
212-
htmlhelp_basename = 'netjsonconfigdoc'
212+
htmlhelp_basename = "netjsonconfigdoc"
213213

214214
# -- Options for manual page output ---------------------------------------
215215

216216
# One entry per manual page. List of tuples
217217
# (source start file, name, description, authors, manual section).
218-
man_pages = [(master_doc, 'netjsonconfig', u'netjsonconfig Documentation', [author], 1)]
218+
man_pages = [(master_doc, "netjsonconfig", "netjsonconfig Documentation", [author], 1)]
219219

220220
# If true, show URL addresses after external links.
221221
# man_show_urls = False
@@ -229,12 +229,12 @@
229229
texinfo_documents = [
230230
(
231231
master_doc,
232-
'netjsonconfig',
233-
u'netjsonconfig documentation',
232+
"netjsonconfig",
233+
"netjsonconfig documentation",
234234
author,
235-
'netjsonconfig',
236-
'Python library that converts NetJSON DeviceConfiguration objects to real router configurations.',
237-
'Miscellaneous',
235+
"netjsonconfig",
236+
"Python library that converts NetJSON DeviceConfiguration objects to real router configurations.",
237+
"Miscellaneous",
238238
),
239239
]
240240

@@ -297,7 +297,7 @@
297297
# epub_post_files = []
298298

299299
# A list of files that should not be packed into the epub file.
300-
epub_exclude_files = ['search.html']
300+
epub_exclude_files = ["search.html"]
301301

302302
# The depth of the table of contents in toc.ncx.
303303
# epub_tocdepth = 3

docs/source/general/basics.rst

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -334,9 +334,7 @@ channel on certain access points:
334334
]
335335
}
336336
337-
router1 = OpenWrt(
338-
config=specific_radio_config, templates=[general_radio_template]
339-
)
337+
router1 = OpenWrt(config=specific_radio_config, templates=[general_radio_template])
340338
341339
print(router1.render())
342340
@@ -398,9 +396,7 @@ Here's a more complex example involving multiple overrides:
398396
]
399397
}
400398
401-
united_states_radio_template = {
402-
"radios": [{"name": "radio0", "country": "US"}]
403-
}
399+
united_states_radio_template = {"radios": [{"name": "radio0", "country": "US"}]}
404400
405401
specific_radio_config = {
406402
"radios": [

netjsonconfig/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99

1010
def get_backends():
1111
default = {
12-
'openwrt': OpenWrt,
13-
'openwisp': OpenWisp,
14-
'openvpn': OpenVpn,
15-
'wireguard': Wireguard,
16-
'vxlan': VxlanWireguard,
17-
'zerotier': ZeroTier,
12+
"openwrt": OpenWrt,
13+
"openwisp": OpenWisp,
14+
"openvpn": OpenVpn,
15+
"wireguard": Wireguard,
16+
"vxlan": VxlanWireguard,
17+
"zerotier": ZeroTier,
1818
}
1919
return default

0 commit comments

Comments
 (0)