Skip to content

Commit 04b9a17

Browse files
Bump clang-tools from 0.12.1 to 0.13.0 in the pip group (#47)
* Bump clang-tools from 0.12.1 to 0.13.0 in the pip group Bumps the pip group with 1 update: [clang-tools](https://github.com/cpp-linter/clang-tools-pip). Updates `clang-tools` from 0.12.1 to 0.13.0 - [Release notes](https://github.com/cpp-linter/clang-tools-pip/releases) - [Commits](cpp-linter/clang-tools-pip@v0.12.1...v0.13.0) --- updated-dependencies: - dependency-name: clang-tools dependency-type: direct:production update-type: version-update:semver-minor dependency-group: pip ... Signed-off-by: dependabot[bot] <[email protected]> * update .gitpod.yml * update to fix test failuer --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: shenxianpeng <[email protected]>
1 parent d3159c2 commit 04b9a17

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

.gitpod.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# This configuration file was automatically generated by Gitpod.
2+
# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml)
3+
# and commit this file to your remote git repository to share the goodness with others.
4+
5+
# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart
6+
7+
tasks:
8+
- init: |
9+
python -m pip install --upgrade pip
10+
pip install .
11+
pip install -r requirements-dev.txt

cpp_linter_hooks/util.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import logging
44
from typing import Optional
55

6+
from clang_tools.util import Version
67
from clang_tools.install import is_installed as _is_installed, install_tool
78

89

@@ -23,8 +24,10 @@ def is_installed(tool_name: str, version: str) -> Optional[Path]:
2324
if path.is_file():
2425
return path
2526

27+
# parse the user-input version as a string
28+
parsed_ver = Version(version)
2629
# also check using clang_tools
27-
path = _is_installed(tool_name, version)
30+
path = _is_installed(tool_name, parsed_ver)
2831
if path is not None:
2932
return Path(path)
3033

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ classifiers = [
2525
"Topic :: Software Development :: Build Tools",
2626
]
2727
dependencies = [
28-
"clang-tools==0.12.1",
28+
"clang-tools==0.13.0",
2929
]
3030
dynamic = ["version"]
3131

0 commit comments

Comments
 (0)