Skip to content

Code Polishy 0.31.8

Choose a tag to compare

@github-actions github-actions released this 30 Oct 23:01
  • Recognize pytest hook implementations as framework callbacks. Resolved
    pytest.hookimpl decorators are preserved in any form, including import
    aliases, wrappers and plugin classes, as are module-level pytest_* functions
    in conftest.py. Exact pytest.hookimpl decorator contracts remain valid but
    are no longer required.
  • Classify conftest.py at any depth as test infrastructure. Root files no longer
    need tests.paths, and an existing declaration remains valid. A repository
    that kept conftest.py in a production module must now declare its test
    ownership in tests.ownership.
  • Reject stale scope.pythonContracts declarations that built-in evidence made
    appear resolved. Autouse fixtures, pytestmark and daemon_threads no longer
    count as a contract's match, so a stale declaration they previously hid now
    fails with its existing diagnostic.

Native archives for Code Polishy 0.31.8.

Source revision: 7487d9b
Publication index SHA-256: e0c537d6b2d97281889565ab3d4a6752a56f2a92d077fb89e69d2f28f1b95ea7
OCI image: ghcr.io/riteofstring/code-polishy:v0.31.8@sha256:2b68f61bed05caa25fe6a77fc7019848f5c60371a1d57ee0471a8229c14355b2