We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea657c4 commit db90443Copy full SHA for db90443
cpp_linter_hooks/util.py
@@ -18,7 +18,8 @@ def get_version_from_dependency(tool: str) -> Optional[str]:
18
pyproject_path = Path(__file__).parent.parent / "pyproject.toml"
19
if not pyproject_path.exists():
20
return None
21
- data = tomllib.load(pyproject_path)
+ with open(pyproject_path, "rb") as f:
22
+ data = tomllib.load(f)
23
dependencies = data.get("project", {}).get("dependencies", [])
24
for dep in dependencies:
25
if dep.startswith(f"{tool}=="):
0 commit comments