Skip to main content

Blog

Thoughts, tutorials, and insights on development, technology, and more.
Media engineeringReact and TypeScriptAI and retrievalDjango backendPython automationDevOps and reliability

Add a dry-run mode to a Python cleanup command

A cleanup script gives no preview of the files it will remove. Build an argparse command that lists eligible temporary files and requires an explicit execute flag to remove test fixtures.