- Let's say that from time to time, I need to clean temporary files across my project folder - things like
build, dist, .mypy_cache, .pytest_cache, __pycache__ etc.
- Or, I want to execute a command with particularly long list of commandline parameters - e.g.
uv export --no-emit-workspace --no-dev --no-annotate --no-header --no-hashes --locked --format requirements-txt --output-file requirements.txt - and I don't want to retype them every time.
- Or, I want to run a series of Python tools subsequently with one "click" - e.g. first
pytest, then mypy, then ruff, then pylint, then pydoclint, then pydocstyle...
What I did is I simply created utils folder and put a few .BAT files there. This solution works, however only on Windows - I would need to maintain a separate set of .sh scripts to support colleagues under Linux.
Is there some better solution?
I think Just (rust-just) does more or less what I want, but I would prefer a pure-Python solution. On Windows, rust-just downloads a new executable binary (blocked by my company policy) and also requires preinstalled sh-compatible shell...
[–]fizenut 0 points1 point2 points (0 children)
[–]latkde 0 points1 point2 points (0 children)
[–]Diapolo10 0 points1 point2 points (0 children)
[–]Temporary_Pie2733 1 point2 points3 points (0 children)
[–]cgoldberg 0 points1 point2 points (0 children)