Skip to content
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

docs: fix sphinx nitpicky issues #2036

Merged
merged 2 commits into from
Jul 18, 2022
Merged

Conversation

aucampia
Copy link
Member

@aucampia aucampia commented Jul 18, 2022

Summary of changes

Enable nitpicky mode for Sphinx and fix all warnings and errors
that occur when running with nitpicky enabled.

Other changes:

  • Add a tox environment for building docs (-docs). This is so we can
    test building docs on various versions of python as there seems to be
    some differences in warnings between different versions. This tox
    environment is enabled for linux CI builds.

  • Change readthedocs to use python 3.9 as earlier versions do not handle
    @typing.overload with type aliases.

  • Fixes 6.1.1: sphinx warnings reference target not found #1878

Checklist

  • Checked that there aren't other open pull requests for
    the same change.
  • Added tests for any changes that have a runtime impact.
  • Checked that all tests and type checking passes.
  • For changes that have a potential impact on users of this project:
    • Considered updating our changelog (CHANGELOG.md).
  • Considered granting push permissions to the PR branch,
    so maintainers can fix minor issues and keep your PR up to date.

@aucampia aucampia linked an issue Jul 18, 2022 that may be closed by this pull request
@aucampia aucampia force-pushed the iwana-20220718T0258-sphinx-nitpick branch from acfc956 to 7c13de4 Compare July 18, 2022 01:13
@coveralls
Copy link

coveralls commented Jul 18, 2022

Coverage Status

Coverage increased (+0.0005%) to 90.446% when pulling c8c4767 on iwana-20220718T0258-sphinx-nitpick into 63ff76c on master.

@aucampia aucampia force-pushed the iwana-20220718T0258-sphinx-nitpick branch 2 times, most recently from 06352b0 to 4536cc5 Compare July 18, 2022 03:46
@aucampia aucampia marked this pull request as ready for review July 18, 2022 03:53
Enable nitpicky mode for Sphinx and fix all warnings and errors
that occur when running with nitpicky enabled.

Other changes:
- Add a tox environment for building docs (-docs). This is so we can
  test building docs on various versions of python as there seems to be
  some differences in warnings between different versions. This tox
  environment is enabled for linux CI builds.
- Change readthedocs to use python 3.9 as earlier versions do not handle
  `@typing.overload` with type aliases.
- Fixes #1878
@aucampia aucampia force-pushed the iwana-20220718T0258-sphinx-nitpick branch from 4536cc5 to 5ceebab Compare July 18, 2022 12:39
@aucampia aucampia requested a review from a team July 18, 2022 12:41
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@aucampia aucampia merged commit 0d413fd into master Jul 18, 2022
@aucampia aucampia deleted the iwana-20220718T0258-sphinx-nitpick branch July 18, 2022 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6.1.1: sphinx warnings reference target not found
2 participants