Remove clang-format and clang-tidy as dependencies#194
Conversation
Agent-Logs-Url: https://github.com/cpp-linter/cpp-linter-hooks/sessions/83cea442-8414-48d1-aa3f-8bb8e4b50a25 Co-authored-by: shenxianpeng <3353385+shenxianpeng@users.noreply.github.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #194 +/- ##
=======================================
Coverage 95.72% 95.72%
=======================================
Files 4 4
Lines 117 117
=======================================
Hits 112 112
Misses 5 5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Merging this PR will not alter performance
Comparing Footnotes
|
|
@copilot since clang-format and clang-tidy are removed fromhe pyproject.toml. this file .github/workflows/release-drafter.yml should be also updated |
Agent-Logs-Url: https://github.com/cpp-linter/cpp-linter-hooks/sessions/457283cf-0c70-4642-98a9-2a98c6a0c6bb Co-authored-by: shenxianpeng <3353385+shenxianpeng@users.noreply.github.com>
Done in 304561b. Removed the |
|



Having
clang-formatandclang-tidypinned as install-time dependencies means they land in the venv unconditionally. When a user provides a wrong path to clang tools, the system silently falls back to these pre-installed versions rather than failing visibly.Changes
pyproject.toml: Removedclang-formatandclang-tidyfromdependencies. Tools are still installed on-demand at runtime via the existingresolve_install→_install_tool(pip) mechanism.util.py:DEFAULT_CLANG_FORMAT_VERSIONandDEFAULT_CLANG_TIDY_VERSIONnow derive from the tail of the auto-updatedCLANG_FORMAT_VERSIONS/CLANG_TIDY_VERSIONSlists inversions.py, instead of being read frompyproject.tomldependencies.uv.lock: Regenerated; removesclang-format,clang-tidy, and the transitively pulledsetuptools..github/workflows/release-drafter.yml: Removed theSet up PythonandInstall dependenciessteps. Version extraction now reads directly fromversions.pyviasys.path, eliminating the need to install the package at all.📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.