Pytest: test for print statements

from blog Applied Cartography, | ↗ original
Inspired by Adam Johnson's test for pending migrations, and of course in conversation with my own love of weird tests, I offer a similar concept: a test for finding stray print statements in your codebase, with a ratchet array for stuff to ignore. import glob PATH = "**/*.py" irrelevant_paths = ( "/commands/", "node_modules", ) def...