Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Bump clang-tools from 0.12.1 to 0.13.0 in the pip group #47

Merged
merged 3 commits into from
Jun 21, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
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
Loading