Skip to content

Commit

Permalink
ci: flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Jan 29, 2021
1 parent 680d12b commit 516c037
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 15 deletions.
24 changes: 13 additions & 11 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@
'rtd_pdf',
]

# specify bibtex files (required for sphinxcontrib.bibtex>=2.0)
bibtex_bibfiles = ['pyjibe.bib']

# enable enumeration of figures
numfig = True

Expand All @@ -86,11 +89,11 @@
# built documents.
#
# The short X.Y version.
#
#
# The full version, including alpha/beta/rc tags.
# This gets 'version'
exec(open(op.join(pdir, "pyjibe/_version.py")).read())
release = version #@UndefinedVariable
release = version # noqa: F821
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#
Expand Down Expand Up @@ -126,7 +129,7 @@
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
#html_static_path = ['data']
# html_static_path = ['data']


# -- Options for HTMLHelp output ------------------------------------------
Expand Down Expand Up @@ -186,12 +189,11 @@
]




# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {"python": ('https://docs.python.org/', None),
"numpy": ('https://docs.scipy.org/doc/numpy', None),
"scipy": ('https://docs.scipy.org/doc/scipy/reference/', None),
"nanite": ('https://nanite.readthedocs.io/en/stable', None),
"afmformats": ('https://afmformats.readthedocs.io/en/stable', None),
}
intersphinx_mapping = {
"python": ('https://docs.python.org/', None),
"numpy": ('https://docs.scipy.org/doc/numpy', None),
"scipy": ('https://docs.scipy.org/doc/scipy/reference/', None),
"nanite": ('https://nanite.readthedocs.io/en/stable', None),
"afmformats": ('https://afmformats.readthedocs.io/en/stable', None),
}
1 change: 0 additions & 1 deletion docs/extensions/rtd_pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ def run(self):
else:
is_rtd = False


rst = []

if is_rtd:
Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ scipy
# Remove sphinx from requirements b/c it lead to issues
# on rtd and it's a dependency of the rtd theme anyway.
# sphinx>=1.6.4,<2
sphinxcontrib.bibtex
sphinxcontrib.bibtex>=2.0
sphinx_rtd_theme
4 changes: 2 additions & 2 deletions docs/tutorials/t01_make_figures.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@
print("Compliant mean +- SD: {:.5g} +- {:.5g}".format(
np.mean(data_compl["Young\'s Modulus [Pa]"]),
np.std(data_compl["Young\'s Modulus [Pa]"])
))
))

print("Stiff mean +- SD: {:.5g} +- {:.5g}".format(
np.mean(data_stiff["Young\'s Modulus [Pa]"]),
np.std(data_stiff["Young\'s Modulus [Pa]"])
))
))

shutil.rmtree(tempdir)

0 comments on commit 516c037

Please sign in to comment.