Releases: alexdej/pytest-cppcheck
Releases · alexdej/pytest-cppcheck
v0.1.2
What's new
cppcheckmarker — all cppcheck items are now marked withcppcheck, enabling-m cppcheck,-m "unit or cppcheck", etc.- README badges — CI status, PyPI version, Python versions, license
- Python version classifiers — PyPI now shows supported Python versions (3.8–3.13)
- Pinned GitHub Actions — all workflow actions pinned to commit SHAs for supply chain safety
- Improved PyPI metadata — README, license, author, and repository links now display on PyPI
v0.1.1
Fix PyPI project page — add README, license, author, and repository links.
No code changes from v0.1.0.
v0.1.0
Initial release. A pytest plugin that runs cppcheck static analysis on C/C++ source files, reporting results as pass/fail in the normal pytest output.
Features
- Opt-in via
--cppcheckflag - Collects
.cand.cppfiles by default (configurable viacppcheck_extensions) - Pass arbitrary cppcheck flags via
cppcheck_argsini option - mtime-based caching — previously passing files are skipped on subsequent runs
- Cross-platform: tested on Linux, macOS, and Windows
- Installs cppcheck automatically via the cppcheck PyPI package
Recommended configuration
[pytest]
cppcheck_args =
--enable=warning,style,performance,portability
--suppress=missingIncludeSystem
--suppress=normalCheckLevelMaxBranches