Skip to content

Commit

Permalink
Bump clang-tools from 0.12.1 to 0.13.0 in the pip group (#47)
Browse files Browse the repository at this point in the history
* 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] <support@github.com>

* update .gitpod.yml

* update to fix test failuer

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: shenxianpeng <xianpeng.shen@gmail.com>
  • Loading branch information
dependabot[bot] and shenxianpeng committed Jun 21, 2024
1 parent d3159c2 commit 04b9a17
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# This configuration file was automatically generated by Gitpod.
# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml)
# and commit this file to your remote git repository to share the goodness with others.

# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart

tasks:
- init: |
python -m pip install --upgrade pip
pip install .
pip install -r requirements-dev.txt
5 changes: 4 additions & 1 deletion cpp_linter_hooks/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import logging
from typing import Optional

from clang_tools.util import Version
from clang_tools.install import is_installed as _is_installed, install_tool


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

# parse the user-input version as a string
parsed_ver = Version(version)
# also check using clang_tools
path = _is_installed(tool_name, version)
path = _is_installed(tool_name, parsed_ver)
if path is not None:
return Path(path)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ classifiers = [
"Topic :: Software Development :: Build Tools",
]
dependencies = [
"clang-tools==0.12.1",
"clang-tools==0.13.0",
]
dynamic = ["version"]

Expand Down

0 comments on commit 04b9a17

Please sign in to comment.