Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning using pre-commit and uv #7489

Closed
Kludex opened this issue Sep 18, 2024 · 3 comments · Fixed by #7502
Closed

Warning using pre-commit and uv #7489

Kludex opened this issue Sep 18, 2024 · 3 comments · Fixed by #7502
Labels
error messages Messaging when something goes wrong

Comments

@Kludex
Copy link

Kludex commented Sep 18, 2024

I'm running ruff on the pre-commit job on the GitHub CI.

      - id: ruff
        name: Ruff
        entry: uv run ruff
        args: ["check", "--fix"]
        types: [python]
        language: system
      - id: ruff-format
        name: Ruff Format
        entry: uv run ruff
        args: [format]
        language: system
        types: [python]

But it causes this:

Screenshot 2024-09-18 at 11 52 53

Using uvx doesn't solve the issue, it just changes the message to get the tools cache.

How can I not see the warning?

@charliermarsh
Copy link
Member

I don't think this message should be user-facing \cc @zanieb

@charliermarsh charliermarsh added the error messages Messaging when something goes wrong label Sep 18, 2024
@Kludex
Copy link
Author

Kludex commented Sep 18, 2024

We do use the --verbose flag on pre-commit. FYI

@zanieb
Copy link
Member

zanieb commented Sep 18, 2024

Yeah idk why this is user-facing, maybe because it could take a while?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
error messages Messaging when something goes wrong
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants