-
Notifications
You must be signed in to change notification settings - Fork 72
Enh: align tests section better with our lessons #604
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
base: main
Are you sure you want to change the base?
Conversation
| font-display: swap; | ||
| font-family: "NunitoSans"; | ||
| font-style: italic; | ||
| font-weight: 400; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has been bugging me - turns out it was just a css glitch!
| @@ -0,0 +1,172 @@ | |||
| ```{eval-rst} | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here i pulled the nox content out of the main run tests page so we don't cover 2 tools on one page which i think it confusing. But I don't want to abandon Nox as it's a really great tool. And if we ever decided hatch development wasn't solid enough in the task runner area we would migrate back to nox.
| @nox.session(python=["3.9", "3.10", "3.11", "3.12"]) | ||
| def test(session): | ||
| ```bash | ||
| hatch run test.py3.11:pytest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| hatch run test.py3.11:pytest | |
| hatch run test.py3.11:run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might be wrong actually...
| **Both tools are solid choices.** The Python scientific community uses both | ||
| extensively. For a complete guide to Nox, see [Run tests with | ||
| Nox](run-tests-nox.md) and the [Scientific Python testing | ||
| guide](https://scientific-python.org/tools/testing). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| **Both tools are solid choices.** The Python scientific community uses both | |
| extensively. For a complete guide to Nox, see [Run tests with | |
| Nox](run-tests-nox.md) and the [Scientific Python testing | |
| guide](https://scientific-python.org/tools/testing). | |
| **Both tools are good choices.** For a more comprehensive guide to using Nox, see [Run tests with | |
| Nox](run-tests-nox.md) and the [Scientific Python testing | |
| guide](https://scientific-python.org/tools/testing). |
I am working on videos on test suites and task runners for our course. And the test section of our guide is dated.
We use Nox in the guide, which I love, but our lessons and template use Hatch. So this tries to clean things up, cross-link, and add the nox content to a new page, replacing the old page with Hatch (our template default).
It also makes sure we are following brand guidelines and crosslinks throughout
A few notes:
I still need to go through and edit this again via review before it is ready.
Claude made some breaking changes to things like how we call hatch environments and define them in the pyproject.toml file. So I want to review again to catch anything else that may have broken. Because Claude was involved, I broke out commits into sets of files as I worked on them.