Skip to content

Commit

Permalink
Run conda tests on Python 3.10 and lint Sphinx config (#506)
Browse files Browse the repository at this point in the history
* Improvements to our noxfile

* Add Python 3.10 to our "conda_test" session, since GHA already supports Conda.

* Add "docs/conf.py" to the files were session "lint" will run, to be the same than the "blacken" step.

* Update the Sphinx config file

Make flake8 feel happy with this.
  • Loading branch information
DiddiLeija committed Nov 19, 2021
1 parent 6155ee7 commit e7ae509
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
8 changes: 4 additions & 4 deletions docs/conf.py
Expand Up @@ -240,13 +240,13 @@

latex_elements = {
# The paper size ('letterpaper' or 'a4paper').
#'papersize': 'letterpaper',
# 'papersize': 'letterpaper',
# The font size ('10pt', '11pt' or '12pt').
#'pointsize': '10pt',
# 'pointsize': '10pt',
# Additional stuff for the LaTeX preamble.
#'preamble': '',
# 'preamble': '',
# Latex figure (float) alignment
#'figure_align': 'htbp',
# 'figure_align': 'htbp',
}

# Grouping the document tree into LaTeX files. List of tuples
Expand Down
5 changes: 2 additions & 3 deletions noxfile.py
Expand Up @@ -53,8 +53,7 @@ def tests(session):
session.notify("cover")


# TODO: When conda supports 3.10 on GHA, add here too
@nox.session(python=["3.6", "3.7", "3.8", "3.9"], venv_backend="conda")
@nox.session(python=["3.6", "3.7", "3.8", "3.9", "3.10"], venv_backend="conda")
def conda_tests(session):
"""Run test suite with pytest."""
session.create_tmp()
Expand Down Expand Up @@ -106,7 +105,7 @@ def lint(session):
"importlib_metadata",
)
session.run("mypy")
files = ["nox", "tests", "noxfile.py"]
files = ["nox", "tests", "noxfile.py", "docs/conf.py"]
session.run("black", "--check", *files)
session.run("isort", "--check", *files)
session.run("flake8", *files)
Expand Down

0 comments on commit e7ae509

Please sign in to comment.