[completely optional] direnv+mise autosetup (#87)

Makes life a lot easier in my experience.
This commit is contained in:
Pierre Carrier
2024-10-30 02:43:10 +01:00
committed by GitHub
parent 900b511422
commit 2b22d49c22
3 changed files with 11 additions and 1 deletions

5
.envrc Normal file
View File

@@ -0,0 +1,5 @@
watch_file .mise.toml
[[ -e ~/.local/bin/mise ]] || (curl -sf https://mise.run | MISE_QUIET=1 sh)
~/.local/bin/mise trust 2> /dev/null
~/.local/bin/mise install -qy
direnv_load ~/.local/bin/mise direnv exec

5
.mise.toml Normal file
View File

@@ -0,0 +1,5 @@
[tools]
python = "3.12"
[env]
_.python.venv = { path = ".venv", create = true }

View File

@@ -1,5 +1,5 @@
numpy~=1.26.4
Pillow~=10.1.0
Pillow~=11.0.0
fabric
gymnasium~=0.28.1
requests~=2.31.0