math
math

Reputation: 8818

How to extend `hatch clean`?

I want to test a new tool called "hatch" for python project management. It claims to be versatile and lightweight, and uses a pyproject.toml file for configuration. It has many batteries included. However I seek a way to delete various custom artifacts, like old .swp files, __pycache__ or other directories (which are already ignored by git).

I come frome make, where it was nearly a one-liner to remove custom artifacts.

Does someone know how to extend hatch clean? (I tested with hatch clean --ext, but obviously it does not know which files to delete).

Upvotes: -1

Views: 20

Answers (0)

Related Questions