-
Notifications
You must be signed in to change notification settings - Fork 1.1k
PYTHON-3738 Use tox for sphinx doc instead of setup.py #1245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
d49427f
852aaf2
132caf0
0ed29fa
a58ecc8
2362932
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,8 +8,20 @@ envlist = | |
lint, | ||
# Run pre-commit on all files, including stages that require manual fixes. | ||
lint-manual, | ||
# Typecheck using mypy. | ||
typecheck-mypy, | ||
# Typecheck using pyright. | ||
typecheck-pyright, | ||
# Typecheck using pyright strict. | ||
typecheck-pyright-strict, | ||
# Typecheck all files. | ||
typecheck | ||
typecheck, | ||
# Build sphinx docs | ||
doc, | ||
# Test sphinx docs | ||
doc-test, | ||
# Linkcheck sphin docs | ||
linkcheck | ||
|
||
[testenv:test] | ||
description = run unit tests | ||
|
@@ -75,3 +87,24 @@ commands = | |
{[testenv:typecheck-mypy]commands} | ||
{[testenv:typecheck-pyright]commands} | ||
{[testenv:typecheck-pyright-strict]commands} | ||
|
||
[testenv:doc] | ||
description = build sphinx docs | ||
deps = | ||
sphinx | ||
commands = | ||
sphinx-build -E -b html doc ./doc/_build/html | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we add
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we currently use those options? I get a lot of warnings when running locally before using tox for building the docs. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We don't use them yet but looks like we have no warnings:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm, I get 15 warnings running on my local machine:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, I don't think we currently handle warnings from sphinx. @NoahStapp can you please open a new issue with that traceback to track handling warnings? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Uh it looks like you have an errant virtualenv in your doc/ directory. |
||
|
||
[testenv:doc-test] | ||
description = run sphinx doc tests | ||
deps = | ||
{[testenv:doc]deps} | ||
commands = | ||
sphinx-build -E -b doctest doc ./doc/_build/doctest | ||
|
||
[testenv:linkcheck] | ||
description = check links of sphinx docs | ||
deps = | ||
{[testenv:doc]deps} | ||
commands = | ||
sphinx-build -E -b linkcheck doc ./doc/_build/linkcheck |
Uh oh!
There was an error while loading. Please reload this page.