Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> I also wish there was a npm style script section in the definitions.

Is that like [tool.poetry.scripts] ?



I don't think so. From their docs: > This section describe the scripts or executable that will be installed when installing the package

I want something such that I can run `poetry run script_name` and it will run that command line in the poetry context. Right now I either rely on my bash history or use a bash script to mimic the behavior of npm / yarn scripts. I want to turn this `poetry run python project_name/main.py` into an alias like `poetry run main` or `poetry run dev`.


That's what tool.poetry.scripts does.


O thats great. So just weirdly worded on the docs / I didn't understand. Thanks!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: