mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-02 06:42:02 +00:00
fix: typo in BREAKING_CHANGES.md & improve wrapping
This commit is contained in:
parent
1a0191f1ac
commit
9731f96fb4
1 changed files with 12 additions and 12 deletions
|
@ -17,25 +17,25 @@
|
||||||
ruff --explain E402 --format json # Works!
|
ruff --explain E402 --format json # Works!
|
||||||
ruff explain E402 --format json # Works! (And preferred.)
|
ruff explain E402 --format json # Works! (And preferred.)
|
||||||
|
|
||||||
This change is largely backwards compatible -- most users should experience no change in behavior.
|
This change is largely backwards compatible -- most users should experience
|
||||||
However, please note the following exceptions:
|
no change in behavior. However, please note the following exceptions:
|
||||||
|
|
||||||
* Subcommands will now fail when invoked with unsupported arguments, instead of silently ignoring
|
* Subcommands will now fail when invoked with unsupported arguments, instead
|
||||||
them. For example, the following will now fail:
|
of silently ignoring them. For example, the following will now fail:
|
||||||
|
|
||||||
ruff --explain E402 --respect-gitignore
|
ruff --explain E402 --respect-gitignore
|
||||||
|
|
||||||
(`explain` command doesn't support `--respect-gitignore`.)
|
(the `explain` command doesn't support `--respect-gitignore`.)
|
||||||
|
|
||||||
* The semantics of `ruff <arg>` have changed slightly when `<arg>` is a valid subcommand. For
|
* The semantics of `ruff <arg>` have changed slightly when `<arg>` is a valid subcommand.
|
||||||
example, prior to this release, running `ruff explain` would run `ruff` over a file or directory
|
For example, prior to this release, running `ruff explain` would run `ruff` over a file or
|
||||||
called `explain`. Now, `ruff explain` would invoke the `explain` subcommand.
|
directory called `explain`. Now, `ruff explain` would invoke the `explain` subcommand.
|
||||||
|
|
||||||
* Scripts that nvoke ruff should supply `--` before any positional arguments. (The semantics of
|
* Scripts that invoke ruff should supply `--` before any positional arguments.
|
||||||
`ruff -- <arg>` have not changed.)
|
(The semantics of `ruff -- <arg>` have not changed.)
|
||||||
|
|
||||||
* `--explain` previously treated `--format grouped` as a synonym for `--format text`. This is no
|
* `--explain` previously treated `--format grouped` as a synonym for `--format text`.
|
||||||
longer supported; instead, use `--format text`.
|
This is no longer supported; instead, use `--format text`.
|
||||||
|
|
||||||
## 0.0.226
|
## 0.0.226
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue