diff --git a/CHANGELOG.md b/CHANGELOG.md index fa87b4d..f357682 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Naming checks for the default ruff configuration. +### Fixed +- Missing shebang in python check tools. This caused errors depending + on which exec function you used. + ## [4.0.0] - 2024-02-14 ### Added diff --git a/python/hooks/default.nix b/python/hooks/default.nix index 86e4580..909ab32 100644 --- a/python/hooks/default.nix +++ b/python/hooks/default.nix @@ -4,6 +4,7 @@ , bat , findutils , lib +, runtimeShell , defaultCheckPhase , configs , ruff @@ -38,6 +39,7 @@ let name = "${toolName}-with-nedryglot-cfg"; executable = true; text = '' + #!${runtimeShell} config_file=$TMP/lint-configs/${config} mkdir -p "$(dirname "$config_file")" export PYTHONPATH=''${PYTHONPATH:-}:${py.pkgs.toml}/${py.sitePackages}