Skip to content

Commit 3acf1f7

Browse files
committed
Black formatting
1 parent 65d7b39 commit 3acf1f7

Some content is hidden

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

42 files changed

+2798
-2538
lines changed

docs/conf.py

+39-25
Original file line numberDiff line numberDiff line change
@@ -37,30 +37,30 @@
3737
extensions = []
3838

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

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

4848
# The master toctree document.
49-
master_doc = 'index'
49+
master_doc = "index"
5050

5151
# General information about the project.
52-
project = 'python-twitch-client'
53-
copyright = '2018, Tomaz Sifrer'
54-
author = 'Tomaz Sifrer'
52+
project = "python-twitch-client"
53+
copyright = "2018-2020, Tomaz Sifrer"
54+
author = "Tomaz Sifrer"
5555

5656
# The version info for the project you're documenting, acts as replacement for
5757
# |version| and |release|, also used in various other places throughout the
5858
# built documents.
5959
#
6060
# The short X.Y version.
61-
version = '0.1'
61+
version = "0.1"
6262
# The full version, including alpha/beta/rc tags.
63-
release = '0.1'
63+
release = "0.1"
6464

6565
# The language for content autogenerated by Sphinx. Refer to documentation
6666
# for a list of supported languages.
@@ -72,10 +72,10 @@
7272
# List of patterns, relative to source directory, that match files and
7373
# directories to ignore when looking for source files.
7474
# This patterns also effect to html_static_path and html_extra_path
75-
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
75+
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
7676

7777
# The name of the Pygments (syntax highlighting) style to use.
78-
pygments_style = 'sphinx'
78+
pygments_style = "sphinx"
7979

8080
# If true, `todo` and `todoList` produce output, else they produce nothing.
8181
todo_include_todos = False
@@ -86,14 +86,15 @@
8686
# The theme to use for HTML and HTML Help pages. See the documentation for
8787
# a list of builtin themes.
8888

89-
html_theme = 'default'
89+
html_theme = "default"
9090

9191
# on_rtd is whether we are on readthedocs.org, this line of code grabbed from docs.readthedocs.org
92-
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
92+
on_rtd = os.environ.get("READTHEDOCS", None) == "True"
9393

9494
if not on_rtd: # only import and set the theme if we're building docs locally
9595
import sphinx_rtd_theme
96-
html_theme = 'sphinx_rtd_theme'
96+
97+
html_theme = "sphinx_rtd_theme"
9798
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
9899

99100
# Theme options are theme-specific and customize the look and feel of a theme
@@ -105,13 +106,13 @@
105106
# Add any paths that contain custom static files (such as style sheets) here,
106107
# relative to this directory. They are copied after the builtin static files,
107108
# so a file named "default.css" will overwrite the builtin "default.css".
108-
html_static_path = ['_static']
109+
html_static_path = ["_static"]
109110

110111

111112
# -- Options for HTMLHelp output ------------------------------------------
112113

113114
# Output file base name for HTML help builder.
114-
htmlhelp_basename = 'python-twitch-clientdoc'
115+
htmlhelp_basename = "python-twitch-clientdoc"
115116

116117

117118
# -- Options for LaTeX output ---------------------------------------------
@@ -120,15 +121,12 @@
120121
# The paper size ('letterpaper' or 'a4paper').
121122
#
122123
# 'papersize': 'letterpaper',
123-
124124
# The font size ('10pt', '11pt' or '12pt').
125125
#
126126
# 'pointsize': '10pt',
127-
128127
# Additional stuff for the LaTeX preamble.
129128
#
130129
# 'preamble': '',
131-
132130
# Latex figure (float) alignment
133131
#
134132
# 'figure_align': 'htbp',
@@ -138,8 +136,13 @@
138136
# (source start file, target name, title,
139137
# author, documentclass [howto, manual, or own class]).
140138
latex_documents = [
141-
(master_doc, 'python-twitch-client.tex', 'python-twitch-client Documentation',
142-
'Tomaz Sifrer', 'manual'),
139+
(
140+
master_doc,
141+
"python-twitch-client.tex",
142+
"python-twitch-client Documentation",
143+
"Tomaz Sifrer",
144+
"manual",
145+
),
143146
]
144147

145148

@@ -148,8 +151,13 @@
148151
# One entry per manual page. List of tuples
149152
# (source start file, name, description, authors, manual section).
150153
man_pages = [
151-
(master_doc, 'python-twitch-client', 'python-twitch-client Documentation',
152-
[author], 1)
154+
(
155+
master_doc,
156+
"python-twitch-client",
157+
"python-twitch-client Documentation",
158+
[author],
159+
1,
160+
)
153161
]
154162

155163

@@ -159,7 +167,13 @@
159167
# (source start file, target name, title, author,
160168
# dir menu entry, description, category)
161169
texinfo_documents = [
162-
(master_doc, 'python-twitch-client', 'python-twitch-client Documentation',
163-
author, 'python-twitch-client', 'An easy to use Python library for accessing the Twitch API.',
164-
'Miscellaneous'),
170+
(
171+
master_doc,
172+
"python-twitch-client",
173+
"python-twitch-client Documentation",
174+
author,
175+
"python-twitch-client",
176+
"An easy to use Python library for accessing the Twitch API.",
177+
"Miscellaneous",
178+
),
165179
]

samples/helix.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55

66
def clips():
77
client = TwitchHelix()
8-
clip = client.get_clips(clip_ids=['AwkwardHelplessSalamanderSwiftRage'])
8+
clip = client.get_clips(clip_ids=["AwkwardHelplessSalamanderSwiftRage"])
99
print(clip)
1010

1111

1212
def games():
1313
client = TwitchHelix()
14-
games = client.get_games(game_ids=[493057], names=['World of Warcraft'])
14+
games = client.get_games(game_ids=[493057], names=["World of Warcraft"])
1515
print(games)
1616

1717

@@ -52,6 +52,6 @@ def streams_metadata():
5252
def user_follows():
5353
client = TwitchHelix()
5454
user_follows_iterator = client.get_user_follows(to_id=23161357)
55-
print('Total: {}'.format(user_follows_iterator.total))
55+
print("Total: {}".format(user_follows_iterator.total))
5656
for user_follow in islice(user_follows_iterator, 0, 10):
5757
print(user_follow)

samples/users.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
from twitch import TwitchClient
22

3-
CLIENT_ID = '<your client ID here>'
3+
CLIENT_ID = "<your client ID here>"
44

55

66
def translate_usernames_to_ids():
77
client = TwitchClient(CLIENT_ID)
8-
users = client.users.translate_usernames_to_ids(['lirik', 'giantwaffle'])
8+
users = client.users.translate_usernames_to_ids(["lirik", "giantwaffle"])
99

1010
for user in users:
11-
print('{}: {}'.format(user.name, user.id))
11+
print("{}: {}".format(user.name, user.id))
1212

1313

14-
if __name__ == '__main__':
14+
if __name__ == "__main__":
1515
translate_usernames_to_ids()

0 commit comments

Comments
 (0)