From 12235a4f8e202f3de981771789f7e993ed30a692 Mon Sep 17 00:00:00 2001 From: Matthias Kuhn Date: Tue, 31 Dec 2024 08:27:55 +0100 Subject: [PATCH] Remove old hook --- .pre-commit-config.yaml | 7 ------- scripts/vcpkg-format.py | 23 ----------------------- 2 files changed, 30 deletions(-) delete mode 100755 scripts/vcpkg-format.py diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 907d1ceaf7..9916f97579 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -38,13 +38,6 @@ repos: types: [file, shell] exclude: .docker/android_dev/tools/android-accept-licenses.sh - - id: vcpkg-format - name: vcpkg-format - description: Formatting vcpkg manifests - entry: ./scripts/vcpkg-format.py - language: script - files: '.*vcpkg\.json' - # Shellcheck - repo: https://github.com/jumanjihouse/pre-commit-hooks rev: 2.1.5 diff --git a/scripts/vcpkg-format.py b/scripts/vcpkg-format.py deleted file mode 100755 index 4faa140f69..0000000000 --- a/scripts/vcpkg-format.py +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env python3 - -import subprocess -import sys -import os - - -def main(): - if sys.platform == "win32": - cmd = ("vcpkg", "format-manifest", "--x-wait-for-lock", *sys.argv[1:]) - else: - vcpkg_exe = os.path.join(os.path.expanduser("~"), ".vcpkg", "vcpkg") - if not os.path.isfile(vcpkg_exe): - print( - f"{vcpkg_exe} not found: bootstrap it by running \n\n . <(curl https://aka.ms/vcpkg-init.sh -L)\n\nSee https://github.com/microsoft/vcpkg-tool/blob/main/README.md#installuseremove" - ) - return 1 - cmd = (vcpkg_exe, "format-manifest", "--x-wait-for-lock", *sys.argv[1:]) - return subprocess.call(cmd) - - -if __name__ == "__main__": - exit(main())