Skip to content

Is there a way to generalize environment scripts during CI/CD? #1800

Answered by ofek
jesshart asked this question in Q&A
Discussion options

You must be logged in to vote

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].

Replies: 1 comment 2 replies

Comment options

ofek
Nov 11, 2024
Maintainer Sponsor

You must be logged in to vote
2 replies
@jesshart
Comment options

@ofek
Comment options

ofek Nov 11, 2024
Maintainer Sponsor

Answer selected by jesshart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants