Skip to content

Commit 05a75e2

Browse files
MNT: rework local pre-commit hook as a python hook (instead of system) (#328)
1 parent 7c2abbc commit 05a75e2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ repos:
2626
hooks:
2727
- id: encode-scripts
2828
name: encode scripts in workflows
29-
language: system
30-
entry: python update_scripts_in_yml.py
29+
language: python
30+
entry: ./update_scripts_in_yml.py
3131
always_run: true
3232
pass_filenames: false

update_scripts_in_yml.py

100644100755
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env python
2+
13
import os
24
from base64 import b64encode
35

0 commit comments

Comments
 (0)