Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion cpp_linter_hooks/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def get_version_from_dependency(tool: str) -> Optional[str]:
DEFAULT_CLANG_FORMAT_VERSION = get_version_from_dependency("clang-format")
DEFAULT_CLANG_TIDY_VERSION = get_version_from_dependency("clang-tidy")


# https://pypi.org/pypi/clang-format/json
CLANG_FORMAT_VERSIONS = [
"6.0.1",
"7.1.0",
Expand Down Expand Up @@ -98,8 +98,11 @@ def get_version_from_dependency(tool: str) -> Optional[str]:
"20.1.7",
"20.1.8",
"21.1.0",
"21.1.1",
"21.1.2",
]

# https://pypi.org/pypi/clang-tidy/json
CLANG_TIDY_VERSIONS = [
"13.0.1.1",
"14.0.6",
Expand All @@ -113,6 +116,7 @@ def get_version_from_dependency(tool: str) -> Optional[str]:
"19.1.0.1",
"20.1.0",
"21.1.0",
"21.1.1",
]


Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ classifiers = [
dependencies = [
"tomli>=1.1.0; python_version < '3.11'",
"setuptools>=45.0.0", # Required for pkg_resources in clang-tidy
"clang-format==21.1.0",
"clang-tidy==21.1.0",
"clang-format==21.1.2",
"clang-tidy==21.1.1",
]
dynamic = ["version"]

Expand Down
Loading