From 9423b662644a0f77652cb2a3b95cd6aa238eb7d8 Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Thu, 28 Nov 2024 19:48:17 +0800 Subject: [PATCH] templates/python-uv: init justfile --- templates/python-uv/flake.nix | 1 + templates/python-uv/justfile | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 templates/python-uv/justfile diff --git a/templates/python-uv/flake.nix b/templates/python-uv/flake.nix index a003d6b..82f7721 100644 --- a/templates/python-uv/flake.nix +++ b/templates/python-uv/flake.nix @@ -37,6 +37,7 @@ packages = [ (pythonSet.mkVirtualEnv "python-uv-env" workspace.deps.all) pkgs.python311Packages.uv + pkgs.just config.treefmt.build.wrapper ]; env = [ diff --git a/templates/python-uv/justfile b/templates/python-uv/justfile new file mode 100644 index 0000000..aae81b8 --- /dev/null +++ b/templates/python-uv/justfile @@ -0,0 +1,7 @@ +set shell := ["bash", "-c"] + +add *name: + uv add {{name}} --no-sync + +remove *name: + uv remove {{name}} --no-sync