|
1 | | -# -*- coding: utf-8 -*- |
2 | 1 | """ |
3 | 2 | Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U. |
4 | 3 | This file is part of Toolium. |
|
72 | 71 |
|
73 | 72 | # General information about the project. |
74 | 73 | project = 'Toolium' |
75 | | -copyright = '2015-2021, Telefónica I+D' |
| 74 | +copyright = '2015-2026, Telefónica I+D' # noqa: A001 |
76 | 75 |
|
77 | 76 | # The version info for the project you're documenting, acts as replacement for |
78 | 77 | # |version| and |release|, also used in various other places throughout the |
|
81 | 80 | # The short X.Y version. |
82 | 81 | version = open('../VERSION').read().strip() |
83 | 82 | # The full version, including alpha/beta/rc tags. |
84 | | -git_log = subprocess.check_output(["git", "log", "--pretty=oneline"]) |
| 83 | +git_log = subprocess.check_output(['git', 'log', '--pretty=oneline']) |
85 | 84 | commits = git_log.split(b'\n') |
86 | | -release = '{}-{}'.format(version, len(commits) - 1) |
| 85 | +release = f'{version}-{len(commits) - 1}' |
87 | 86 |
|
88 | 87 | # The language for content autogenerated by Sphinx. Refer to documentation |
89 | 88 | # for a list of supported languages. |
|
129 | 128 | # The theme to use for HTML and HTML Help pages. See the documentation for |
130 | 129 | # a list of builtin themes. |
131 | 130 | # html_theme = 'default' |
132 | | -html_theme = "sphinx_rtd_theme" |
| 131 | +html_theme = 'sphinx_rtd_theme' |
133 | 132 |
|
134 | 133 | # Theme options are theme-specific and customize the look and feel of a theme |
135 | 134 | # further. For a list of options available for each theme, see the |
|
214 | 213 | latex_elements = { |
215 | 214 | # The paper size ('letterpaper' or 'a4paper'). |
216 | 215 | # 'papersize': 'letterpaper', |
217 | | - |
218 | 216 | # The font size ('10pt', '11pt' or '12pt'). |
219 | 217 | # 'pointsize': '10pt', |
220 | | - |
221 | 218 | # Additional stuff for the LaTeX preamble. |
222 | 219 | # 'preamble': '', |
223 | 220 | } |
|
255 | 252 | # One entry per manual page. List of tuples |
256 | 253 | # (source start file, name, description, authors, manual section). |
257 | 254 | man_pages = [ |
258 | | - ('index', 'Toolium', 'Toolium Documentation', ['Rubén González Alonso, Telefónica I+D'], 1) |
| 255 | + ('index', 'Toolium', 'Toolium Documentation', ['Rubén González Alonso, Telefónica I+D'], 1), |
259 | 256 | ] |
260 | 257 |
|
261 | 258 | # If true, show URL addresses after external links. |
|
268 | 265 | # (source start file, target name, title, author, |
269 | 266 | # dir menu entry, description, category) |
270 | 267 | texinfo_documents = [ |
271 | | - ('index', 'Toolium', 'toolium Documentation', 'Rubén González Alonso, Telefónica I+D', 'toolium', |
272 | | - 'Wrapper tool of Selenium and Appium libraries to test web and mobile applications in a single project.', |
273 | | - 'Miscellaneous'), |
| 268 | + ( |
| 269 | + 'index', |
| 270 | + 'Toolium', |
| 271 | + 'toolium Documentation', |
| 272 | + 'Rubén González Alonso, Telefónica I+D', |
| 273 | + 'toolium', |
| 274 | + 'Wrapper tool of Selenium and Appium libraries to test web and mobile applications in a single project.', |
| 275 | + 'Miscellaneous', |
| 276 | + ), |
274 | 277 | ] |
275 | 278 |
|
276 | 279 | # Documents to append as an appendix to all manuals. |
|
291 | 294 |
|
292 | 295 | def remove_module_docstring(app, what, name, obj, options, lines): |
293 | 296 | """Remove all module docstrings to exclude license header""" |
294 | | - if what == "module": |
| 297 | + if what == 'module': |
295 | 298 | del lines[:] |
296 | 299 |
|
297 | 300 |
|
298 | 301 | def setup(app): |
299 | | - app.connect("autodoc-process-docstring", remove_module_docstring) |
| 302 | + app.connect('autodoc-process-docstring', remove_module_docstring) |
0 commit comments