-
Notifications
You must be signed in to change notification settings - Fork 1
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
Use uv for Python dependency management and code execution #107
base: main
Are you sure you want to change the base?
Conversation
Hi @sanders41, I'm finally getting around to updating the examples to use
Just wanted to keep you aware as I move forward with this. I'll progressively update the docs over the coming days on this. |
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.
Ok, I only had a quick minute to look at things, but I figured out why pre-commit
is failing. We need the root level pyproject.toml
with the mypy settings.
I still don't understand the issues I had with my local pre-commit
, but it finally started working. which pre-commit
originally showed the system pre-commit
. I deactivated my virtual environment, went to another repo and check it, it showed pre-commit
from the virtual environment. I came back to this repo activated again and this time it used pre-commit
from the virtual environment and started working 🤷
@sanders41 the pre-commit fixes worked! Not sure how that root level |
Err one of the tests is failing - it's the mock data for PyO3 - any ideas as to why? |
My guess based on the error (and it's only a guess at this point) is I'll have some time tomorrow I can mess around with it to see if I can get it working. |
Fix pyo3_mock_data CI build failure
Now that
uv
has more or less stabilized, we can update the instructions in all READMEs to make the Python workflows more or less identical to that of Rust 🎉.The commits in this PR will work their way through each of the pieces one by one, showing how to do Python dependency management and code execution via
uv
instead of the system Python.uv
releasehello_world
intro
simple_csv