Repository navigation
Code Polishy 0.31.8
- Recognize pytest hook implementations as framework callbacks. Resolved
pytest.hookimpldecorators are preserved in any form, including import
aliases, wrappers and plugin classes, as are module-levelpytest_*functions
inconftest.py. Exactpytest.hookimpldecorator contracts remain valid but
are no longer required. - Classify
conftest.pyat any depth as test infrastructure. Root files no longer
needtests.paths, and an existing declaration remains valid. A repository
that keptconftest.pyin a production module must now declare its test
ownership intests.ownership. - Reject stale
scope.pythonContractsdeclarations that built-in evidence made
appear resolved. Autouse fixtures,pytestmarkanddaemon_threadsno 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