From 1483bb94b4b826a7bacdd245649ec27853f14b3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Robert?= Date: Mon, 10 Nov 2025 18:06:07 +0100 Subject: [PATCH] MNT: rework local pre-commit hook as a python hook (instead of system) --- .pre-commit-config.yaml | 4 ++-- update_scripts_in_yml.py | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) mode change 100644 => 100755 update_scripts_in_yml.py diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c03d83b5..7018dbdf 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,7 +26,7 @@ repos: hooks: - id: encode-scripts name: encode scripts in workflows - language: system - entry: python update_scripts_in_yml.py + language: python + entry: ./update_scripts_in_yml.py always_run: true pass_filenames: false diff --git a/update_scripts_in_yml.py b/update_scripts_in_yml.py old mode 100644 new mode 100755 index 69ea4aca..ec45756f --- a/update_scripts_in_yml.py +++ b/update_scripts_in_yml.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python + import os from base64 import b64encode