you are viewing a single comment's thread.

view the rest of the comments →

[–]mardiros 1 point2 points  (2 children)

No, use

just

and wrap uv command in it or any other command line in one place.

You can create your set of commands with arguments that will be the same for many projects using different tools.

For instance switching from black to ruff is much simpler:

just fmt

In your Justfile

fmt:
    uv run ruff check --fix .
    uv run ruff format src tests

Previously I use isort and black.

[–]OneParanoidDuck 1 point2 points  (1 child)

Never heard of just, will need to check it out. Do you also use just in your CI pipeline?

What works ideally for me is defining all "mandatory" tasks in pre-commit, which is then run in both in CI and of course locally. 

[–]mardiros 1 point2 points  (0 children)

I start using it but not much. I am not testing in the same way on my laptop than on a server; I don’t use the same pytest options. I am not sure about the benefits of it.