Skip to content

Commit

Permalink
⚡ Fix missing shebang in python checks
Browse files Browse the repository at this point in the history
  • Loading branch information
sakarias88 committed Feb 16, 2024
1 parent aa5e8a5 commit 7359960
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions python/hooks/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
, bat
, findutils
, lib
, runtimeShell
, defaultCheckPhase
, configs
, ruff
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit 7359960

Please sign in to comment.