build: migrate to devenv

- Add devenv.nix with Python/uv setup and git-hooks
- Add devenv.yaml and devenv.lock
- Refactor flake.nix to use devenv integration
- Update .envrc from flake to devenv
- Add devenv artifacts to .gitignore
This commit is contained in:
Konstantin Fickel 2026-02-15 17:31:02 +01:00
parent f9ed0463f7
commit b4848bb661
Signed by: kfickel
GPG key ID: A793722F9933C1A5
7 changed files with 373 additions and 184 deletions

28
devenv.nix Normal file
View file

@ -0,0 +1,28 @@
{
pkgs,
...
}:
{
languages = {
python = {
enable = true;
uv.enable = true;
};
};
packages = [
pkgs.basedpyright
];
git-hooks.hooks = {
basedpyright = {
enable = true;
entry = "${pkgs.basedpyright}/bin/basedpyright";
files = "\\.py$";
types = [ "file" ];
};
ruff.enable = true;
ruff-format.enable = true;
commitizen.enable = true;
};
}