Make tychk-watch not use the nix path for current directory as it does not update when a file changes

main
xenia 2024-01-06 19:34:30 +01:00
parent 8b28ffe2aa
commit e9ff270f34
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@
]);
cfg = ./mypy-config.ini;
in rec {
packages.tychk-watch = pkgs.writeScriptBin "tychk" "echo 'running mypy on change...' ; ${pkgs.watchexec}/bin/watchexec -e py ${python}/bin/mypy --config ${cfg} ${./.}";
packages.tychk-watch = pkgs.writeScriptBin "tychk" "echo 'running mypy on change...' ; ${pkgs.watchexec}/bin/watchexec -e py ${python}/bin/mypy --config ${cfg} .";
packages.tychk = pkgs.writeScriptBin "tychk" "${python}/bin/mypy ${./.} --config ${cfg}";
devShells.default = pkgs.mkShell {
packages = [ python ];