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 docs build, fix all build warnings, enable strict mode #71

Merged
merged 5 commits into from
Nov 2, 2023

Conversation

tlambert03
Copy link
Contributor

This fixes #67 and gets docs building again. I did it by playing around with dependencies, and ultimately found that updating everything to the newest versions worked best (I removed m2r2 in favor of myst-parser, which helped with one of the docutils conflicts... I believe myst is now the recommended way to incorporate markdown in rst sources).

I would be curious to hear from @cmalinmayor whether the list rendering bug that necessitated the pins in 3b0be12 is "back" with this PR... but I wasn't able to find anything weird looking? bullets seem fine?

I did hard pin everything in the docs deps, which is optional and can be undone if you prefer, but I don't hesitate to pin all my docs requirements if I feel like it is a possibly fragile blend of packages. It's not like your regular dependencies (and you don't want to be surprised by a breakage) and you can update at your leisure if there's a feature you later want.

I went through and got rid of all the remaining warnings in the docs build (mostly indentations and unescaped * characters, and then enabled fail_on_warning: true to prevent them from leaking back in. That too can be undone if you like.

If you're willing, it might be nice to enable readthedocs builds on PRs, so you can test this (and future PRs). Instructions here: https://docs.readthedocs.io/en/stable/pull-requests.html (needs to be done by someone with rtd admin)

@msschwartz21 msschwartz21 added the documentation Improvements or additions to documentation label Oct 31, 2023
Copy link
Collaborator

@msschwartz21 msschwartz21 left a comment

Choose a reason for hiding this comment

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

Amazing! Thank you! I built the docs locally and everything looks fine so I am very happy to pin the current dependencies!

RTD on PRs enabled for the future :)

@tlambert03
Copy link
Contributor Author

cool. RTD previews on PRs are running now... you can see the latest preview at https://traccuracy--71.org.readthedocs.build/en/71/

@cmalinmayor
Copy link
Collaborator

@tlambert03 Now that I merged the coverage and precommit PRs, we have conflicts in the pyproject.toml. Can you resolve when you get the chance? Thanks!

@codecov-commenter
Copy link

codecov-commenter commented Nov 2, 2023

Codecov Report

Merging #71 (6fe51a2) into main (32581bf) will not change coverage.
The diff coverage is n/a.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

@@           Coverage Diff           @@
##             main      #71   +/-   ##
=======================================
  Coverage   83.01%   83.01%           
=======================================
  Files          18       18           
  Lines         848      848           
=======================================
  Hits          704      704           
  Misses        144      144           
Files Coverage Δ
src/traccuracy/_tracking_graph.py 85.36% <ø> (ø)
src/traccuracy/cli.py 0.00% <ø> (ø)
src/traccuracy/loaders/_ctc.py 98.55% <ø> (ø)
src/traccuracy/matchers/_iou.py 95.23% <ø> (ø)
src/traccuracy/metrics/_divisions.py 81.25% <ø> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@cmalinmayor cmalinmayor merged commit 5ff8bcf into Janelia-Trackathon-2023:main Nov 2, 2023
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Documentation build failing on RTD
4 participants