-
PDM supports a concept of composite scripts: [tool.pdm.scripts]
lint = "flake8"
test = "pytest"
all = {composite = ["lint", "test"]} Does Hatch have anything like this? I was unable to find this in the documentation. It seems like a similar idea may have been discussed previously? |
Beta Was this translation helpful? Give feedback.
Answered by
ofek
Apr 23, 2023
Replies: 1 comment 3 replies
-
Though trial/error I discovered that each script target is an executable in the environment. Thus, you can simply write: [tool.hatch.envs.myenv..scripts]
lint = "flake8"
test = "pytest"
all = ["lint", "test"] |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
documented here https://hatch.pypa.io/latest/config/environment/overview/#scripts
let me know if you have advice on how to make that more clear!