From e67441ea5b12d3480732ea9b452cb89798dc1520 Mon Sep 17 00:00:00 2001 From: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Date: Fri, 18 Apr 2025 15:07:23 -0700 Subject: [PATCH] chore: type check install_certifi.py --- .pre-commit-config.yaml | 1 - cibuildwheel/resources/install_certifi.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 11e7e982a..e7bb7cdbd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,7 +25,6 @@ repos: hooks: - id: mypy name: mypy 3.11 on cibuildwheel/ - exclude: ^cibuildwheel/resources/.*py$ args: ["--python-version=3.11"] additional_dependencies: &mypy-dependencies - bracex diff --git a/cibuildwheel/resources/install_certifi.py b/cibuildwheel/resources/install_certifi.py index 0d261d51a..860521750 100644 --- a/cibuildwheel/resources/install_certifi.py +++ b/cibuildwheel/resources/install_certifi.py @@ -26,7 +26,7 @@ ) -def main(): +def main() -> None: openssl_dir, openssl_cafile = os.path.split(ssl.get_default_verify_paths().openssl_cafile) print(" -- pip install --upgrade certifi") subprocess.check_call(