▲ | stared 4 days ago | ||||||||||||||||
Here the tricky part is to make tests that it work correctly. I did this upgrade a few times, and works for simple stuff like charm (e.g. removing requirements.txt and adding proper pyproject.toml). Even in Claude Code, it takes some prompting and CLAUDE.md so that it consistently runs uv, rather sometimes `uv run python`, other times `python3 -m` being surprised that some dependency is not available. | |||||||||||||||||
▲ | groby_b 4 days ago | parent | next [-] | ||||||||||||||||
Skip the fiddling with prompts, just sandbox so that these commands are not run (via permissions.deny) In dire cases, use the PreToolUse hook to inspect/intercept (though it's usually not necessary). Granted, I haven't tried it for huge projects yet, but after doing that my small-medium sized projects all got ported nicely. (If you must change the prompt, mention PEP723 as well, it seems to have the same effect as showing a shiny trinket to a magpie ;) | |||||||||||||||||
▲ | sujee_dev 4 days ago | parent | prev [-] | ||||||||||||||||
I am doing this now. What are your instructions in CLAUDE.md? thx | |||||||||||||||||
|