feat: first commit
This commit is contained in:
commit
b90bd077d9
24 changed files with 935 additions and 0 deletions
24
shell.nix
Normal file
24
shell.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
pkgs ? import <nixpkgs> {},
|
||||
pre-commit-hooks,
|
||||
}: let
|
||||
pre-commit-check = pre-commit-hooks.lib.${pkgs.system}.run {
|
||||
src = ./.;
|
||||
hooks = {
|
||||
ruff.enable = true;
|
||||
pylint = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
myPython = pkgs.python3.withPackages (pyPkgs: with pyPkgs; [requests pylint setuptools]);
|
||||
in
|
||||
pkgs.mkShell {
|
||||
name = "extract-romset";
|
||||
buildInputs = [myPython pre-commit-check.enabledPackages];
|
||||
nativeBuildInputs = [pkgs.aria2 pkgs.ruff pkgs.basedpyright];
|
||||
shellHook = ''
|
||||
PYTHONPATH=${myPython}/${myPython.sitePackages}
|
||||
${pre-commit-check.shellHook}
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue