From 6583151b89642a109a67955e64e69c69a823bfbd Mon Sep 17 00:00:00 2001 From: Peter Bittner Date: Mon, 20 Nov 2023 23:05:22 +0100 Subject: [PATCH] Add PyClean to Tox configuration --- tox.ini | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 8a45e6b..f1766ca 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,9 @@ [tox] -envlist = lint,format,py +envlist = + lint + format + py + clean [testenv] description = Unit tests and test coverage @@ -22,3 +26,9 @@ description = Lightening-fast linting (Ruff) skip_install = true deps = ruff commands = ruff check {posargs:--show-source .} + +[testenv:clean] +description = Clean up Python bytecode and other debris +skip_install = true +deps = pyclean +commands = pyclean {posargs:. --debris}