-
Notifications
You must be signed in to change notification settings - Fork 912
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
Misc fixes #944
Misc fixes #944
Conversation
ashwinb
commented
Feb 3, 2025
•
edited
Loading
edited
- Make sure torch + torchvision go together as deps, otherwise bad stuff happens
- Add a pre-commit for requirements.txt
@@ -43,6 +43,12 @@ repos: | |||
additional_dependencies: | |||
- black==24.3.0 | |||
|
|||
- repo: https://github.com/astral-sh/uv-pre-commit |
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.
Oh they even had a pre-commit hook?!
@@ -0,0 +1,53 @@ | |||
# This file was autogenerated by uv via the following command: |
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.
Is this file needed in addition to uv.lock
?
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.
@terrytangyuan in an ideal world, this file is not needed at all. but many folks still instinctively look for this file and have processes dependent on it. that's why uv
even has this export mechanism.
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.
Sounds good
- Make sure torch + torchvision go together as deps, otherwise bad stuff happens - Add a pre-commit for requirements.txt