Skip to content

Commit

Permalink
trivial: fix flake8 warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Stehlé <[email protected]>
  • Loading branch information
vstehle committed Sep 27, 2023
1 parent 23d575b commit 6c66c82
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = ['sphinx.ext.todo',
'sphinx.ext.githubpages']
extensions = ['sphinx.ext.todo', 'sphinx.ext.githubpages']

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
Expand All @@ -58,8 +57,9 @@
#
# The short X.Y version.
try:
version = str(subprocess.check_output(["git", "describe", "--dirty"]), 'utf-8').strip()
except:
version = str(subprocess.check_output(
["git", "describe", "--dirty"]), 'utf-8').strip()
except Exception:
version = "unknown-rev"
# The full version, including alpha/beta/rc tags.
release = version
Expand Down Expand Up @@ -133,7 +133,11 @@

# Release numbers with a qualifier (ex. '-rc', '-pre') get a watermark.
if '-' in release:
latex_elements['preamble'] += '\\usepackage{draftwatermark}\\SetWatermarkScale{.45}\\SetWatermarkText{%s}' % (release)
latex_elements['preamble'] += r'''
\usepackage{draftwatermark}
\SetWatermarkScale{.45}
\SetWatermarkText{%s}
''' % (release)

# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title,
Expand Down Expand Up @@ -161,6 +165,3 @@
(master_doc, 'EBBR', project, author, 'EBBR',
'One line description of project.', 'Miscellaneous'),
]



0 comments on commit 6c66c82

Please sign in to comment.