Skip to content

Releases: alexdej/pytest-cppcheck

v0.1.2

26 Mar 22:05

Choose a tag to compare

What's new

  • cppcheck marker — all cppcheck items are now marked with cppcheck, 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

26 Mar 21:30

Choose a tag to compare

Fix PyPI project page — add README, license, author, and repository links.

No code changes from v0.1.0.

v0.1.0

26 Mar 20:15
69a7249

Choose a tag to compare

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