Skip to content

Commit 951f357

Browse files
author
Emmanuel Rondan
committed
applying pre-commit hooks changes
1 parent 4bfc4b6 commit 951f357

File tree

6 files changed

+671
-534
lines changed

6 files changed

+671
-534
lines changed

docs/conf.py

Lines changed: 38 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,18 @@
1212
# All configuration values have a default; values that are commented out
1313
# serve to show the default.
1414

15+
import sys
16+
1517
# If extensions (or modules to document with autodoc) are in another directory,
1618
# add these directories to sys.path here. If the directory is relative to the
1719
# documentation root, use os.path.abspath to make it absolute, like shown here.
1820
#
1921
from os import path
20-
import sys
2122

2223
sys.path.insert(0, path.dirname(path.dirname(__file__)))
2324

2425

25-
import sphinx_rtd_theme
26+
import sphinx_rtd_theme # noqa: E402
2627

2728
html_theme = "sphinx_rtd_theme"
2829

@@ -38,25 +39,25 @@
3839
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
3940
# ones.
4041
extensions = [
41-
'sphinx.ext.autosectionlabel',
42+
"sphinx.ext.autosectionlabel",
4243
]
4344

4445
# Add any paths that contain templates here, relative to this directory.
45-
templates_path = ['_templates']
46+
templates_path = ["_templates"]
4647

4748
# The suffix(es) of source filenames.
4849
# You can specify multiple suffix as a list of string:
4950
#
5051
# source_suffix = ['.rst', '.md']
51-
source_suffix = '.rst'
52+
source_suffix = ".rst"
5253

5354
# The master toctree document.
54-
master_doc = 'index'
55+
master_doc = "index"
5556

5657
# General information about the project.
57-
project = u'scrapy-zyte-smartproxy'
58-
copyright = u'2011-2021, Zyte Group Ltd'
59-
author = u'Zyte'
58+
project = "scrapy-zyte-smartproxy"
59+
copyright = "2011-2021, Zyte Group Ltd"
60+
author = "Zyte"
6061

6162
# The version info for the project you're documenting, acts as replacement for
6263
# |version| and |release|, also used in various other places throughout the
@@ -65,19 +66,20 @@
6566

6667
try:
6768
import scrapy_zyte_smartproxy
68-
version = '.'.join(scrapy_zyte_smartproxy.__version__.split('.')[:2])
69+
70+
version = ".".join(scrapy_zyte_smartproxy.__version__.split(".")[:2])
6971
release = scrapy_zyte_smartproxy.__version__
7072
except ImportError:
71-
version = ''
72-
release = ''
73+
version = ""
74+
release = ""
7375

7476
# List of patterns, relative to source directory, that match files and
7577
# directories to ignore when looking for source files.
7678
# This patterns also effect to html_static_path and html_extra_path
77-
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
79+
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
7880

7981
# The name of the Pygments (syntax highlighting) style to use.
80-
pygments_style = 'sphinx'
82+
pygments_style = "sphinx"
8183

8284
# If true, `todo` and `todoList` produce output, else they produce nothing.
8385
todo_include_todos = False
@@ -98,13 +100,13 @@
98100
# Add any paths that contain custom static files (such as style sheets) here,
99101
# relative to this directory. They are copied after the builtin static files,
100102
# so a file named "default.css" will overwrite the builtin "default.css".
101-
#html_static_path = ['_static']
103+
# html_static_path = ['_static']
102104

103105

104106
# -- Options for HTMLHelp output ------------------------------------------
105107

106108
# Output file base name for HTML help builder.
107-
htmlhelp_basename = 'scrapy-zyte-smartproxydoc'
109+
htmlhelp_basename = "scrapy-zyte-smartproxydoc"
108110

109111

110112
# -- Options for LaTeX output ---------------------------------------------
@@ -113,15 +115,12 @@
113115
# The paper size ('letterpaper' or 'a4paper').
114116
#
115117
# 'papersize': 'letterpaper',
116-
117118
# The font size ('10pt', '11pt' or '12pt').
118119
#
119120
# 'pointsize': '10pt',
120-
121121
# Additional stuff for the LaTeX preamble.
122122
#
123123
# 'preamble': '',
124-
125124
# Latex figure (float) alignment
126125
#
127126
# 'figure_align': 'htbp',
@@ -133,10 +132,10 @@
133132
latex_documents = [
134133
(
135134
master_doc,
136-
'scrapy-zyte-smartproxy.tex',
137-
u'scrapy-zyte-smartproxy Documentation',
138-
u'Zyte',
139-
'manual',
135+
"scrapy-zyte-smartproxy.tex",
136+
"scrapy-zyte-smartproxy Documentation",
137+
"Zyte",
138+
"manual",
140139
),
141140
]
142141

@@ -146,8 +145,13 @@
146145
# One entry per manual page. List of tuples
147146
# (source start file, name, description, authors, manual section).
148147
man_pages = [
149-
(master_doc, 'scrapy-zyte-smartproxy', u'scrapy-zyte-smartproxy Documentation',
150-
[author], 1)
148+
(
149+
master_doc,
150+
"scrapy-zyte-smartproxy",
151+
"scrapy-zyte-smartproxy Documentation",
152+
[author],
153+
1,
154+
)
151155
]
152156

153157

@@ -157,10 +161,13 @@
157161
# (source start file, target name, title, author,
158162
# dir menu entry, description, category)
159163
texinfo_documents = [
160-
(master_doc, 'scrapy-zyte-smartproxy', u'scrapy-zyte-smartproxy Documentation',
161-
author, 'scrapy-zyte-smartproxy', 'One line description of project.',
162-
'Miscellaneous'),
164+
(
165+
master_doc,
166+
"scrapy-zyte-smartproxy",
167+
"scrapy-zyte-smartproxy Documentation",
168+
author,
169+
"scrapy-zyte-smartproxy",
170+
"One line description of project.",
171+
"Miscellaneous",
172+
),
163173
]
164-
165-
166-

scrapy_zyte_smartproxy/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
from .middleware import ZyteSmartProxyMiddleware
2-
3-
4-
__version__ = '2.3.5'
1+
__version__ = "2.3.5"

0 commit comments

Comments
 (0)