fpgmaas / deptry

Find unused, missing and transitive dependencies in a Python project.
https://deptry.com/
MIT License
841 stars 18 forks source link

Add support for uv #813

Closed mkniewallner closed 2 weeks ago

mkniewallner commented 1 month ago

Is your feature request related to a problem? Please describe.

uv is getting more and more traction. We could add support for it.

Describe the solution you would like

uv follows PEP 621 for package metadata definition, so basic support for it should not require that much changes. We would need to handle development dependencies that can be defined in dev-dependencies under [tool.uv] (https://docs.astral.sh/uv/concepts/dependencies/#development-dependencies).

uv also has a concept of workspaces, which would be nice to handle as well, albeit more complex to handle. I did not dig too much into how we could support it, but this is something to keep in mind.

mkniewallner commented 2 weeks ago

Going to close this issue. Supporting workspaces could be nice, but we can create a separate issue for it.