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