-
Notifications
You must be signed in to change notification settings - Fork 114
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 deptry to check for issues with the project's dependencies. #679
base: main
Are you sure you want to change the base?
Conversation
This looks really interesting but I'm slammed at the moment. Could you ping me in a few weeks so I can give this a proper look? |
@maresb ping ;) updated the PR, it seems |
7c71c66
to
0ae6a90
Compare
Thanks a lot @fpgmaas, this is a really cool project. I like that it pushed me to document several quirks of our dependencies in the ignores. Moreover I opened #812 and #813 to fix some issues revealed here. I can also explain some minor pain points:
I hope this feedback is useful. As for the future of this PR, I think it may make sense to add |
Thanks a bunch for the feedback!
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #679 +/- ##
=======================================
Coverage 80.87% 80.87%
=======================================
Files 163 163
Lines 46847 46847
Branches 11463 11463
=======================================
Hits 37887 37887
+ Misses 6750 6747 -3
- Partials 2210 2213 +3 |
Needs a rebase? |
Co-authored-by: Ben Mares <services-git-throwaway1@tensorial.com>
Squished. |
Just realized that currently deptry only exists for Linux and AMD Mac on conda-forge. That might break the workflows of developers. Will remove it from the environment.yaml |
Description
This proposes to add deptry to the project, which would automatically detect issues with the project's dependencies, such as unused, transitive, or missing dependencies, similar to what was handled in this PR.
Disclaimer; I am the author of deptry :)
The output of a run of deptry on the project is shown below:
Initial
pyproject.toml
config:In this PR, I added config to ignore these specific errors in the
pyproject.toml
, since it is difficult for me to judge if they are correct or not. At first glance, it seems that the error forjaxlib
is correct; that does not seem to be used. Also,pydot
,pydot2
andpydot_ng
are declared as 'docs' dependencies, but they are used within thepytensor
directory.If you think it does not add enough value to the project, feel free to close it.
Related Issue
Checklist
Type of change