Remove --line-length option from format command (#8131)

This commit is contained in:
Micha Reiser 2023-10-24 08:58:01 +09:00 committed by GitHub
parent 802616aac0
commit 2f32a57cf4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 8 deletions

View file

@ -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