hatch-pip-compile
hatch-pip-compile copied to clipboard
🐛 extract relevant output from `hatch env show --json`
If result.stdout contains something more than the JSON output of all the environments, such as logs from Hatch plugins/hooks, this will result in JSONDecodeError. We must extract the relevant output to prevent such cases.
lol, that was my first time requesting review from co-pilot. It wasn't actually that useful.
Thanks for the contribution, @valentinoli - give me a day or to get a closer look at this but everything looks good on first glance.
Perhaps consider parsing hatch.toml/pyproject.toml directly instead
@juftin
Consider #96 as an alternative