From 73599605293a4b41dce215e22b820c85201adf9f Mon Sep 17 00:00:00 2001 From: Sakarias Johansson Date: Fri, 16 Feb 2024 10:53:51 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=20Fix=20missing=20shebang=20in=20pyth?= =?UTF-8?q?on=20checks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 4 ++++ python/hooks/default.nix | 2 ++ 2 files changed, 6 insertions(+) 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}