Last active
September 14, 2025 15:30
-
-
Save hugovk/d601e651e08d229714a86fb5b04bc6c9 to your computer and use it in GitHub Desktop.
Revisions
-
hugovk revised this gist
Sep 14, 2025 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,6 @@ """ uv run https://gist.github.com/hugovk/d601e651e08d229714a86fb5b04bc6c9 """ import subprocess from pathlib import Path -
hugovk created this gist
Sep 14, 2025 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ import subprocess from pathlib import Path for directory in sorted(Path(".").iterdir(), key=lambda x: x.name.lower()): if directory.is_dir() and (directory / ".pre-commit-config.yaml").is_file(): print(directory) subprocess.run( ["prek", "install", "--allow-missing-config"], cwd=directory, check=True )