Skip to content

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 26 Mar 20:15
· 12 commits to main since this release
69a7249

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 --cppcheck flag
  • Collects .c and .cpp files by default (configurable via cppcheck_extensions)
  • Pass arbitrary cppcheck flags via cppcheck_args ini 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