From a5596ba60955a32086d91e6f7670ae5bb55ba97d Mon Sep 17 00:00:00 2001 From: shenxianpeng <3353385+shenxianpeng@users.noreply.github.com> Date: Thu, 29 May 2025 06:45:41 +0000 Subject: [PATCH 1/8] chore: bump clang-tools-static-binaries to master-b35c5633 --- clang_tools/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang_tools/__init__.py b/clang_tools/__init__.py index 5228c8b..342ccb1 100644 --- a/clang_tools/__init__.py +++ b/clang_tools/__init__.py @@ -8,4 +8,4 @@ suffix = ".exe" if install_os == "windows" else "" # tag of https://github.com/cpp-linter/clang-tools-static-binaries/releases -release_tag = "master-11dfa474" +release_tag = "master-b35c5633" From 467478d7205d0486ee3ed3d0e9d626ed74f95c46 Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Thu, 29 May 2025 12:22:05 +0000 Subject: [PATCH 2/8] chore: update path in test --- .github/workflows/python-test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 8c6e16d..02a323e 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -10,6 +10,7 @@ on: branches: [ "main" ] paths: - "clang_tools/*" + - "clang_tools/__init__.py" - "tests/*" - "**requirements*.txt" - pyproject.toml From 29ccdb1a145ef6968edf5a777e5dc8d9e7a932c2 Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Thu, 29 May 2025 12:22:52 +0000 Subject: [PATCH 3/8] chore: bump hooks version --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 608d04d..fc59073 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v5.0.0 hooks: - id: trailing-whitespace exclude: \.output @@ -12,11 +12,11 @@ repos: - id: debug-statements - id: requirements-txt-fixer - repo: https://github.com/asottile/pyupgrade - rev: v3.15.1 + rev: v3.20.0 hooks: - id: pyupgrade - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.2.2 + rev: v0.11.11 hooks: - id: ruff - id: ruff-format From 9cf804f3f0492c8cc061d6b7f59e47a3334926cc Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Thu, 29 May 2025 12:27:30 +0000 Subject: [PATCH 4/8] update code and sha512sum files --- clang_tools/__init__.py | 1 + tests/clang-format-12_macosx-amd64.sha512sum | 2 +- tests/clang-format-12_windows-amd64.sha512sum | 2 +- tests/test_install.py | 1 + tests/test_main.py | 1 + 5 files changed, 5 insertions(+), 2 deletions(-) diff --git a/clang_tools/__init__.py b/clang_tools/__init__.py index 342ccb1..fd3dd3b 100644 --- a/clang_tools/__init__.py +++ b/clang_tools/__init__.py @@ -1,4 +1,5 @@ """The clang-tools package's base module.""" + from .util import check_install_os diff --git a/tests/clang-format-12_macosx-amd64.sha512sum b/tests/clang-format-12_macosx-amd64.sha512sum index 7edea70..a4b72fc 100644 --- a/tests/clang-format-12_macosx-amd64.sha512sum +++ b/tests/clang-format-12_macosx-amd64.sha512sum @@ -1 +1 @@ -ced6413367e7930395c38cc97b82b201b833f424d3293ab2d188c2f4318a318b464b0dbb3e0427bf09ed3af05ee3308301826f8258ecdba8193c7e600fee146e clang-format-12_macosx-amd64 +26e598d0ec9d5e38ca09e861969029aede5a27b5a761f1a5b354a2f2f65fcc9e5549dbc6f7a0bf14c2d8395dc971235da7659b46db5b570f0bbaba23511088a7 clang-format-12.0.1_macosx-amd64 diff --git a/tests/clang-format-12_windows-amd64.sha512sum b/tests/clang-format-12_windows-amd64.sha512sum index fa91234..4df0e46 100644 --- a/tests/clang-format-12_windows-amd64.sha512sum +++ b/tests/clang-format-12_windows-amd64.sha512sum @@ -1 +1 @@ -682988cd469c37bd2e41b418fd67185be34d40a5586722f7482969cd5d961e089e99d75251e0a775266cb470d78f5569cde4eaa0041b57ab3338874ec07be290 *clang-format-12_windows-amd64 +e677edcb802e151462b10855f1486ae7c82e48631653a88c8980d0e5510954376b14f01f1a702770ab3db798eefe42a2c76c24c4307965bda9d029755e894477 *clang-format-12.0.1_windows-amd64 diff --git a/tests/test_install.py b/tests/test_install.py index e45e89c..8013b62 100644 --- a/tests/test_install.py +++ b/tests/test_install.py @@ -1,4 +1,5 @@ """Tests related to installing a clang tool.""" + from pathlib import PurePath, Path import os import pytest diff --git a/tests/test_main.py b/tests/test_main.py index cc35b3f..07d4807 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -1,4 +1,5 @@ """Tests that relate to the main.py module.""" + from typing import Optional, List from argparse import ArgumentParser import pytest From 513b89ba790718a15b73012ce759c7661a0c620c Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Thu, 29 May 2025 12:31:03 +0000 Subject: [PATCH 5/8] update sha512sum files --- tests/clang-format-12_macosx-amd64.sha512sum | 2 +- tests/clang-format-12_windows-amd64.sha512sum | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/clang-format-12_macosx-amd64.sha512sum b/tests/clang-format-12_macosx-amd64.sha512sum index a4b72fc..1499a9b 100644 --- a/tests/clang-format-12_macosx-amd64.sha512sum +++ b/tests/clang-format-12_macosx-amd64.sha512sum @@ -1 +1 @@ -26e598d0ec9d5e38ca09e861969029aede5a27b5a761f1a5b354a2f2f65fcc9e5549dbc6f7a0bf14c2d8395dc971235da7659b46db5b570f0bbaba23511088a7 clang-format-12.0.1_macosx-amd64 +9be1e20c5b418e6100fb39f45ea43a0a653cb8457abd942d167187d4493028fbd0993cbf6fc574bc4158d1ec76a076c617596cc6c2a6a0135e51d0e0617a7655 clang-format-12_macosx-amd64 diff --git a/tests/clang-format-12_windows-amd64.sha512sum b/tests/clang-format-12_windows-amd64.sha512sum index 4df0e46..a699963 100644 --- a/tests/clang-format-12_windows-amd64.sha512sum +++ b/tests/clang-format-12_windows-amd64.sha512sum @@ -1 +1 @@ -e677edcb802e151462b10855f1486ae7c82e48631653a88c8980d0e5510954376b14f01f1a702770ab3db798eefe42a2c76c24c4307965bda9d029755e894477 *clang-format-12.0.1_windows-amd64 +7c00dc5d2f715ee7f022121335f10896f092bbb8bd91c304010241fb11926b459a6995b2d79fc2171f7523b748455c53d009d69f88c81da0841ca57114fbbdce *clang-format-12_windows-amd64 From 99ea6f65aa0bcc54c192a08a9fc8ea441b6d894e Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Thu, 29 May 2025 15:31:24 +0300 Subject: [PATCH 6/8] Update .github/workflows/python-test.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .github/workflows/python-test.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 02a323e..8c6e16d 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -10,7 +10,6 @@ on: branches: [ "main" ] paths: - "clang_tools/*" - - "clang_tools/__init__.py" - "tests/*" - "**requirements*.txt" - pyproject.toml From 1afef14408eb0ae5132f925ab1f17cd40eb5c7a6 Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Thu, 29 May 2025 15:34:46 +0300 Subject: [PATCH 7/8] Update README.rst --- README.rst | 3 --- 1 file changed, 3 deletions(-) diff --git a/README.rst b/README.rst index d8863d3..46ea80f 100644 --- a/README.rst +++ b/README.rst @@ -138,6 +138,3 @@ clang-format, clang-tidy, clang-query, clang-apply-replacements Linux,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️ Windows,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️ macOS,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️ - -.. warning:: - All clang-tidy v14+ builds for MacOS are still ~1.6 GB in size. From 759e15686accf241ef4b97733f39c5898f43dda5 Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Thu, 29 May 2025 15:38:08 +0300 Subject: [PATCH 8/8] Update README.rst --- README.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.rst b/README.rst index 46ea80f..ab32f42 100644 --- a/README.rst +++ b/README.rst @@ -138,3 +138,5 @@ clang-format, clang-tidy, clang-query, clang-apply-replacements Linux,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️ Windows,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️ macOS,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️ + +For more details, visit the `clang-tools-static-binaries `_ repository.