mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
feat: add testing to python template
This commit is contained in:
parent
fbc134388d
commit
ed9e8bc22e
8 changed files with 329 additions and 69 deletions
|
|
@ -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)`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue