HATCH-CLEAN(1)

πŸ“¦
version 1.16.4 Β· 2 versions
, in epel 10, fedora 43, fedora 44

πŸ’– HATCH-CLEAN(1) πŸ’–

okay bestie, welcome to hatch-clean β€” she lives in the User Commands section of the manual and she has exactly one job: Remove build artifacts ✨ like she is literally the cleanup crew and she ate πŸ’…


🌸 NAME 🌸

hatch clean – Remove build artifacts 🧹

no cap, that's the whole vibe. everything you built? gone. poof. iconic.


✨ SYNOPSIS ✨

hatch clean [OPTIONS] [LOCATION]

that's it that's the whole thing 🫢 you give her some OPTIONS, you optionally point her at a LOCATION, and she goes to work.


πŸŽ€ OPTIONS πŸŽ€

  • -t, --target TEXT β€” this is the target you want to remove artifacts for, and she will override your project defaults to do it. and the way that you can pick it multiple times?? yeah. like -t sdist -t wheel. stack 'em, bestie πŸ‘‘
  • --hooks-only β€” whether or not to only remove artifacts from build hooks 🌈 (env var: HATCH_BUILD_HOOKS_ONLY)
  • --no-hooks β€” whether or not to ignore artifacts from build hooks πŸ™ˆ (env var: HATCH_BUILD_NO_HOOKS)
  • --ext β€” whether or not to only remove artifacts from build hooks for distributing binary Python packages, like compiled extensions πŸ¦‹. lowkey this one is just --hooks-only -t wheel wearing a cute little outfit. Equivalent to --hooks-only -t wheel ✨
  • -h, --help β€” show a help message and exit πŸ₯° she will tell you everything and then politely leave.

🌈 ENVIRONMENT 🌈

  • HATCH_BUILD_HOOKS_ONLY β€” whether or not to only remove artifacts from build hooks (option: --hooks-only) πŸ’œ
  • HATCH_BUILD_NO_HOOKS β€” whether or not to ignore artifacts from build hooks (option: --no-hooks) πŸ’œ

like, same energy as the flags, just living in your env instead. iykyk 🌸


πŸ‘‘ SEE ALSO πŸ‘‘

go read her friends, they're all slaying in their own lanes:

hatch-build(1), hatch-config(1), hatch-dep(1), hatch-env(1), hatch-fmt(1), hatch-new(1), hatch-project(1), hatch-publish(1), hatch-python(1), hatch-run(1), hatch-self(1), hatch-shell(1), hatch-status(1), hatch-test(1), hatch-version(1)

and of course the mothership herself: hatch(1) πŸ’–


fr fr, this page is from August 2024 and it's part of HATCH-CLEAN(1). that's the source, the version, the date, the whole cute little sign-off πŸŽ€ mwah, go clean something bestie πŸ’…
πŸ“¦ where this page comes from