-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Deprecate ruff <path>
ruff --explain
, ruff --clean
and ruff --generate-shell-completion
#10169
Conversation
…generate-shell-completion`
…ruff --generate-shell-completion`
|
Some("--clean") => { | ||
Some("`ruff --clean` is deprecated. Use `ruff clean` instead.") | ||
} | ||
Some("--generate-shell-completion") => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’ll check, but this one might be used in our Homebrew formula. (Which is ok.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…generate-shell-completion` (astral-sh#10169)
ruff has deprecated top-level lint settings, instead they must be moved into a dedicated `lint` section. Additionally, the CLI now needs to be invoked with a `check` subcommand. https://astral.sh/blog/ruff-v0.2.0#configuration-changes astral-sh/ruff#10169
ruff has deprecated top-level lint settings, instead they must be moved into a dedicated `lint` section. Additionally, the CLI now needs to be invoked with a `check` subcommand. https://astral.sh/blog/ruff-v0.2.0#configuration-changes astral-sh/ruff#10169
Summary
Deprecate
ruff <path>
ruff --explain
,ruff --clean
andruff --generate-shell-completion
in favor ofruff check <path>
,ruff rule
,ruff clean
andruff generate-shell-completion
.Closes #9692
Test Plan
--clean
--generate-shell-completion
ruff --explain
ruff