Skip to content

Commit

Permalink
Use f-strings in noxfile.py
Browse files Browse the repository at this point in the history
nox is Python 3.6+, and f-strings are awesome. :)
  • Loading branch information
pradyunsg committed Sep 23, 2020
1 parent 7bdba77 commit 9443e6f
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,11 @@ def get_sphinx_build_command(kind):
return [
"sphinx-build",
"-W",
"-c",
"docs/html", # see note above
"-d",
"docs/build/doctrees/" + kind,
"-b",
kind,
"docs/" + kind,
"docs/build/" + kind,
"-c=docs/html", # see note above
f"-d=docs/build/doctrees/{kind}",
f"-b={kind}",
f"docs/{kind}",
f"docs/build/{kind}",
]

session.run(*get_sphinx_build_command("html"))
Expand Down

0 comments on commit 9443e6f

Please sign in to comment.