Skip to content

Utilise PDM scripts for the API  #4168

Open
@dhruvkb

Description

@dhruvkb

Problem

The frontend has a very minimal justfile. This is because a lot of jobs are described using package.json scripts and most of them are invoked with just frontend/run ....

This is also possible for a lot of jobs in the API, which can be invoked using PDM scripts that will automatically enable the proper Python environment and call bins as if they were on the $PATH.

Description

Utilise PDM scripts to reduce the number of recipes in the justfile, specifically recipes of the form pdm run python ..., a clear indicator that PDM is activating the virtual environment and then calling the command.

Alternatives

If the general consensus is that the opposite is more preferable, we can reevaluate this position for the frontend which has ~50 scripts in frontend/package.json!

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✨ goal: improvementImprovement to an existing user-facing feature🐍 tech: pythonInvolves Python💬 talk: discussionOpen for discussions and feedback💻 aspect: codeConcerns the software code in the repository🟩 priority: lowLow priority and doesn't need to be rushed🤖 aspect: dxConcerns developers' experience with the codebase🧱 stack: apiRelated to the Django API

    Type

    No type

    Projects

    Status

    📋 Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions