-
NOTE: This question is a general how-to with hatch since its about an application CI/CD workflow using hatch (as opposed to a package or library workflow). My team has adopted hatch for managing our python projects. In the past we used Makefiles to allow alias-type one-line commands for running scripts in CI/CD, but now that we are utilizing hatch's script capabilities in the More generally, is there a recommended workflow with hatch and CI/CD that someone could share? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Sorry I don't quite understand. Are you saying you want to run scripts that are defined in |
Beta Was this translation helpful? Give feedback.
That sounds like an interesting constraint. I don't know if this works for you but there is an undocumented feature where you can force running a command without a target environment by using an empty string e.g.
hatch run :foo bar
. When this happens it doesn't look for predefined scripts in the normal spot but rather in a top-level[tool.hatch.scripts]
.