-
Hey! My problem is simple: [build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "runscripts"
version = "0.1.0"
description = 'test to run scripts with hatch'
readme = "README.md"
requires-python = "~=3.10.0"
license = "MIT"
[tool.hatch.envs.test]
skip-install = true
detached = true
[tool.hatch.envs.test.scripts]
ignore-fail = "- true"
check-fail = "true"
hello = "echo 'hello world'" Then in powershell on Windows I activated my conda environment that has hatch installed, and ran
which exited with code 1. I also tried with a fresh conda environment with hatch installed. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
On Windows the commands will run with the default shell |
Beta Was this translation helpful? Give feedback.
-
I was able to solve the issue with |
Beta Was this translation helpful? Give feedback.
I was able to solve the issue with
C:\Windows\System32\reg.exe DELETE "HKCU\Software\Microsoft\Command Processor" /v AutoRun /f
. Had nothing to do with hatch, but a broken cmd was affecting hatch. Couldn't figure out how to successfully switch shells on Windows, though.