pre-commit/pre_commit
Miroslav Vadkerti 1cee8274a5 Support lifecycle scripts for node
The `npm pack` runs lifecycle scripts which can
spoil the standard output of the command and prevent
correct parsing of the created tarball.

For details see:

https://docs.npmjs.com/cli/v8/using-npm/scripts#life-cycle-scripts

Include a simple fix to parse out the tarball from the last line
and cover the fix with a simple test.

Signed-off-by: Miroslav Vadkerti <mvadkert@redhat.com>
2024-07-17 21:57:07 +02:00
..
commands fix per-hook fail_fast to not fail on previous failures 2024-03-24 13:17:00 -04:00
languages Support lifecycle scripts for node 2024-07-17 21:57:07 +02:00
meta_hooks python3.9+ 2023-10-28 14:20:37 -04:00
resources Upgrade to ruby-build v20230330 2023-04-18 10:58:57 -07:00
__init__.py Initial commit. 2014-03-12 20:25:19 -07:00
__main__.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
all_languages.py Add haskell language support to pre-commit. 2023-07-22 16:28:48 -04:00
clientlib.py attempt minimum_pre_commit_version first when parsing configs 2023-12-09 15:34:16 -05:00
color.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
constants.py make --hook-type and stages match 2023-03-11 14:26:14 -05:00
envcontext.py python3.9+ 2023-10-28 14:20:37 -04:00
error_handler.py python3.9+ 2023-10-28 14:20:37 -04:00
errors.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
file_lock.py python3.9+ 2023-10-28 14:20:37 -04:00
git.py python3.9+ 2023-10-28 14:20:37 -04:00
hook.py python3.9+ 2023-10-28 14:20:37 -04:00
lang_base.py python3.9+ 2023-10-28 14:20:37 -04:00
logging_handler.py python3.9+ 2023-10-28 14:20:37 -04:00
main.py [pre-commit.ci] auto fixes from pre-commit.com hooks 2024-01-12 16:32:44 +00:00
output.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
parse_shebang.py python3.9+ 2023-10-28 14:20:37 -04:00
prefix.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
repository.py attempt minimum_pre_commit_version first when parsing configs 2023-12-09 15:34:16 -05:00
staged_files_only.py staged_files_only can handle a crlf-only diff 2024-02-10 14:01:49 -05:00
store.py python3.9+ 2023-10-28 14:20:37 -04:00
util.py adjust _handle_readonly for typeshed updates 2024-04-29 21:05:41 -04:00
xargs.py python3.9+ 2023-10-28 14:20:37 -04:00
yaml.py add pre_commit.yaml module 2023-01-02 18:42:34 -05:00