Fix formatting error in command_line.rst as well as docs CI #12905
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
There is a minor block formatting error in
docs/source/command_line.rst, as committed in a6166b2:mypy/docs/source/command_line.rst
Lines 217 to 236 in 2051024
I noticed this during a local tox build, and then wondered why this wasn't flagged in CI.
It turns out that the
docsgithub workflow wants to run the build on Python 3.10, as of commit fec5320:mypy/.github/workflows/docs.yml
Lines 19 to 25 in 2051024
This fails, however, because
tox.inispecifies Python 3.7 for thedocsbuild:mypy/tox.ini
Lines 56 to 58 in 2051024
Subsequently, though, this failure is ignored, and the CI passes, because
skip_missing_interpretersis enabled:mypy/tox.ini
Line 3 in 2051024
Test Plan
With these changes, the
docsworkflow gets Python 3.7, and the docs are actually built successfully. I'm not sure why the author of the theme change thought it had to be 3.10...