mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-31 15:47:41 +00:00
Remove --line-length
option from format
command (#8131)
This commit is contained in:
parent
802616aac0
commit
2f32a57cf4
2 changed files with 3 additions and 8 deletions
|
@ -118,11 +118,10 @@ quote-style = "single"
|
|||
```
|
||||
|
||||
The Ruff formatter also respects Ruff's [`line-length`](https://docs.astral.sh/ruff/settings/#line-length)
|
||||
setting, which also can be provided via a `pyproject.toml` or `ruff.toml` file, or on the CLI, as
|
||||
in:
|
||||
setting, which also can be provided via a `pyproject.toml` or `ruff.toml` file.
|
||||
|
||||
```console
|
||||
ruff format --line-length 100 /path/to/file.py
|
||||
```toml
|
||||
line-length = 80
|
||||
```
|
||||
|
||||
### Excluding code from formatting
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue