feat: add testing to python template

This commit is contained in:
Leon Schwarzäugl 2024-12-31 16:25:43 +01:00
parent fbc134388d
commit ed9e8bc22e
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
8 changed files with 329 additions and 69 deletions

View file

@ -1,5 +1,26 @@
# Python template using uv2nix
### How to use
This template flake provides a python environment that is being managed by `uv` while still keeping the store managed by `nix`.
1) ``
## Setup
1) Enter project directory
2) `project python`
3) Edit Python version in `flake.nix` and Python version + dependencies in `pyproject.toml`
4) `uv lock`
5) `direnv reload`
## Usage
### Testing
- run `nix flake check`
###### Note for Emacs users
It can happen that Emacs will not immediately pick up on the new environment after you have made your changes. In that case, perform the following steps in Emacs (this is for a setup using `envrc.el` and `eglot`):
1) `(envrc-reload)`
2) `(eglot)`