Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Use ruff check instead of ruff#392

Merged
MichaReiser merged 1 commit intomainfrom
call-ruff-check
Feb 29, 2024
Merged

Use ruff check instead of ruff#392
MichaReiser merged 1 commit intomainfrom
call-ruff-check

Conversation

@MichaReiser
Copy link
Copy Markdown
Member

@MichaReiser MichaReiser commented Feb 29, 2024

Summary

Use ruff check instead of ruff for lining.

This change is in preparation for removing the ruff alias. astral-sh/ruff#10171

Test Plan

I verified that:

  • ruff-lsp uses ruff ... for linting before making the change
  • ruff-lsp uses ruff check ... after my change
  • that diagnostics are still shown after my change

@MichaReiser MichaReiser added the internal An internal refactor or improvement label Feb 29, 2024

# Arguments provided to every Ruff invocation.
CHECK_ARGS = [
"check",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume this existed from v0.0.189 onward?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does indeed

git checkout v0.0.189
cargo clean
cargo run --bin ruff -- check -h
Ruff: An extremely fast Python linter.

Usage: ruff [OPTIONS] [FILES]...

Arguments:
  [FILES]...  

@MichaReiser MichaReiser merged commit 66c94fb into main Feb 29, 2024
@MichaReiser MichaReiser deleted the call-ruff-check branch February 29, 2024 15:50
@MichaReiser MichaReiser mentioned this pull request Jun 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

internal An internal refactor or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants