Pyproject, Deptry and github action#62
Open
RianKoja wants to merge 2 commits into
Open
Conversation
… a github action. Initialized a pyproject.toml, this will help ensuring reproducible python environments, but adds a dependency on uv.
Initialised a pyproject.toml, this will help ensuring reproducible python environments, but adds a dependency on uv.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Dear PRIDE team,
First of all, congratulations on all the good work, and thanks for the contribution to the open source community.
I'm starting to study your repository for my own application. In this process, I'd like to contribute with some merge requests that should hopefully improve the accessibility of this project and foster oepn source collaboration.
For this first merge request, I'm proposing a simple tool addition: Deptry. This is a tool that checks if all require python dependencies have been properly configured, and that transient dependencies are left unpínned. For this to make sense, I've also added a pyproject.toml that configures basic dependencies and a uv.lock that specifies exact versions to be used with this repository. This allows a new user to run
uv syncand have all required versions of python dependencies properly configured.Notice that Asltral's uv becomes a new dependency, but I think that is fair as this is the de factor standard for modern python development.
In order for the dependencies to remain updated over time, I'm also proposing a github action to run deptry on each push and merge request. The action is designed to allow room for later improvement, thus a Makefile was also added to serve as a documentation and helper to run deptry and other commands that may be used in the future.
I would really appreciate if we could work together on getting this merge request accepted. Congratulations and thank you again for the good work and open source contribution.