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:
parent
8b28ffe2aa
commit
e9ff270f34
|
@ -14,7 +14,7 @@
|
||||||
]);
|
]);
|
||||||
cfg = ./mypy-config.ini;
|
cfg = ./mypy-config.ini;
|
||||||
in rec {
|
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}";
|
packages.tychk = pkgs.writeScriptBin "tychk" "${python}/bin/mypy ${./.} --config ${cfg}";
|
||||||
devShells.default = pkgs.mkShell {
|
devShells.default = pkgs.mkShell {
|
||||||
packages = [ python ];
|
packages = [ python ];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user