In the github action workflows it is easiest to install all the required dependencies using requirements.txt or environment.yml file. However, it is not desirable to maintain these files separately from pyproject.toml.
A Python script (using toml or tomli) that reads pyproject.toml and outputs either requirements.txt or environment.yml would be useful. Ideally it would have a CLI interface and could be made into a pre-commit hook (think everytime pyproject.toml changes, this runs and generates the updated files).
In the github action workflows it is easiest to install all the required dependencies using requirements.txt or environment.yml file. However, it is not desirable to maintain these files separately from pyproject.toml.
A Python script (using toml or tomli) that reads pyproject.toml and outputs either requirements.txt or environment.yml would be useful. Ideally it would have a CLI interface and could be made into a pre-commit hook (think everytime pyproject.toml changes, this runs and generates the updated files).