Skip to content

Commit 580f0ef

Browse files
fix: remove clang-format and clang-tidy as hard package dependencies
Agent-Logs-Url: https://github.com/cpp-linter/cpp-linter-hooks/sessions/83cea442-8414-48d1-aa3f-8bb8e4b50a25 Co-authored-by: shenxianpeng <3353385+shenxianpeng@users.noreply.github.com>
1 parent 7baa264 commit 580f0ef

3 files changed

Lines changed: 2 additions & 63 deletions

File tree

cpp_linter_hooks/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ def get_version_from_dependency(tool: str) -> Optional[str]:
3030
return None
3131

3232

33-
DEFAULT_CLANG_FORMAT_VERSION = get_version_from_dependency("clang-format")
34-
DEFAULT_CLANG_TIDY_VERSION = get_version_from_dependency("clang-tidy")
33+
DEFAULT_CLANG_FORMAT_VERSION = CLANG_FORMAT_VERSIONS[-1] # latest from versions.py
34+
DEFAULT_CLANG_TIDY_VERSION = CLANG_TIDY_VERSIONS[-1] # latest from versions.py
3535

3636

3737
def _resolve_version(versions: List[str], user_input: Optional[str]) -> Optional[str]:

pyproject.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ classifiers = [
3333
dependencies = [
3434
"pip>=20.3", # Required to install clang-format and clang-tidy
3535
"tomli>=1.1.0; python_version < '3.11'",
36-
"clang-format==22.1.1",
37-
"clang-tidy==22.1.0",
3836
]
3937
dynamic = ["version"]
4038

uv.lock

Lines changed: 0 additions & 59 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)