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

This commit is contained in:
xenia 2024-01-06 19:34:30 +01:00
parent 8b28ffe2aa
commit e9ff270f34

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 ];