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:
parent
f9ed0463f7
commit
b4848bb661
7 changed files with 373 additions and 184 deletions
28
devenv.nix
Normal file
28
devenv.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue