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

add initial tox.ini #3196

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

add initial tox.ini #3196

wants to merge 5 commits into from

Conversation

jakkdl
Copy link
Member

@jakkdl jakkdl commented Jan 31, 2025

I started out on a tox.ini because it's handy to have; it's not complete enough to close #3170, but it should be sufficient for #2699 once the CI is updated to use it.

everybody's very welcome to push commits to this PR, but I don't think we should block merging it until the tox/nox config is perfect (leaving that for followup PRs) Cause I Wanna Use It ™️

@jakkdl
Copy link
Member Author

jakkdl commented Feb 14, 2025

ugh, native toml not supporting https://tox.wiki/en/latest/config.html#conditional-settings makes it a non-trivial conversion. I think the way to get around that is with more explicit environments + https://tox.wiki/en/latest/config.html#string-substitution-references; but... that's for another day/person

@jakkdl
Copy link
Member Author

jakkdl commented Feb 14, 2025

If you review ci.sh with ignoring whitespace: https://github.com/python-trio/trio/pull/3196/files?w=1
you see that it's solely just removing the CHECK_FORMATTING logic.

I propose delaying further CI/ci.sh/tox-gh stuff for future PR's, as that quickly gets very messy.

Copy link
Member

@CoolCat467 CoolCat467 left a comment

Choose a reason for hiding this comment

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

I think this mostly makes sense, wondering about mypy runs, and I thought there was some sort of tox github actions thing that was useful for some reason the last time I used tox.

Comment on lines +77 to +79
mypy --platform linux
mypy --platform darwin
mypy --platform win32
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this use mypy_annotate?

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.

Replace check.sh and/or ci.sh with tox/nox
2 participants