Skip to content

Commit 728e6da

Browse files
authored
Applied black and isort + added fix calls to tox (#2137)
* Applied black and isort + added fix calls to tox * Removed mypy tox reference for now
1 parent 3c01848 commit 728e6da

File tree

16 files changed

+434
-617
lines changed

16 files changed

+434
-617
lines changed

docs/conf.py

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# serve to show the default.
1414

1515
import os
16+
1617
try:
1718
import tomllib
1819
except ImportError:
@@ -39,6 +40,7 @@ def _read_version_from_pyproject(pyproject_path=None):
3940
elif "tool" in data and "poetry" in data["tool"] and "version" in data["tool"]["poetry"]:
4041
return data["tool"]["poetry"]["version"]
4142

43+
4244
# -- General configuration ------------------------------------------------
4345

4446

@@ -64,12 +66,7 @@ def _read_version_from_pyproject(pyproject_path=None):
6466
# Add any Sphinx extension module names here, as strings. They can be
6567
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
6668
# ones.
67-
extensions = [
68-
'sphinx.ext.autodoc',
69-
'sphinx.ext.coverage',
70-
'sphinx.ext.napoleon',
71-
'sphinx.ext.viewcode'
72-
]
69+
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.coverage', 'sphinx.ext.napoleon', 'sphinx.ext.viewcode']
7370

7471
# Add any paths that contain templates here, relative to this directory.
7572
templates_path = ['_templates']
@@ -212,10 +209,8 @@ def _read_version_from_pyproject(pyproject_path=None):
212209
latex_elements = {
213210
# The paper size ('letterpaper' or 'a4paper').
214211
# 'papersize': 'letterpaper',
215-
216212
# The font size ('10pt', '11pt' or '12pt').
217213
# 'pointsize': '10pt',
218-
219214
# Additional stuff for the LaTeX preamble.
220215
# 'preamble': '',
221216
}
@@ -224,8 +219,7 @@ def _read_version_from_pyproject(pyproject_path=None):
224219
# (source start file, target name, title,
225220
# author, documentclass [howto, manual, or own class]).
226221
latex_documents = [
227-
('index', 'confluent-kafka.tex', u'confluent-kafka Documentation',
228-
u'Magnus Edenhill', 'manual'),
222+
('index', 'confluent-kafka.tex', u'confluent-kafka Documentation', u'Magnus Edenhill', 'manual'),
229223
]
230224

231225
# The name of an image file (relative to this directory) to place at the top of
@@ -253,10 +247,7 @@ def _read_version_from_pyproject(pyproject_path=None):
253247

254248
# One entry per manual page. List of tuples
255249
# (source start file, name, description, authors, manual section).
256-
man_pages = [
257-
('index', 'confluent-kafka', u'confluent-kafka Documentation',
258-
[u'Magnus Edenhill'], 1)
259-
]
250+
man_pages = [('index', 'confluent-kafka', u'confluent-kafka Documentation', [u'Magnus Edenhill'], 1)]
260251

261252
# If true, show URL addresses after external links.
262253
# man_show_urls = False
@@ -268,9 +259,15 @@ def _read_version_from_pyproject(pyproject_path=None):
268259
# (source start file, target name, title, author,
269260
# dir menu entry, description, category)
270261
texinfo_documents = [
271-
('index', 'confluent-kafka', u'confluent-kafka Documentation',
272-
u'Magnus Edenhill', 'confluent-kafka', 'One line description of project.',
273-
'Miscellaneous'),
262+
(
263+
'index',
264+
'confluent-kafka',
265+
u'confluent-kafka Documentation',
266+
u'Magnus Edenhill',
267+
'confluent-kafka',
268+
'One line description of project.',
269+
'Miscellaneous',
270+
),
274271
]
275272

276273
# Documents to append as an appendix to all manuals.

examples/protobuf/user_pb2.py

Lines changed: 9 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ skip = [
8787
"dist",
8888
"tmp-build",
8989
"tmp-KafkaCluster",
90+
".tox",
9091
]
9192
skip_glob = [
9293
"*_pb2.py",

0 commit comments

Comments
 (0)