mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 18:28:24 +00:00
[Docs] Clear instruction for single quotes (linter and formatter) (#12015)
## Summary In order to use single quotes with both the ruff linter and the ruff formatter, two different rules must be applied. This was not clear to me when internet searching "configure ruff single quotes" and it eventually I filed this issue: https://github.com/astral-sh/ruff/issues/12003
This commit is contained in:
parent
5b21922420
commit
bbb9fe1692
1 changed files with 2 additions and 2 deletions
|
@ -195,7 +195,7 @@ As an example, the following would configure Ruff to:
|
|||
"**/{tests,docs,tools}/*" = ["E402"]
|
||||
|
||||
[tool.ruff.format]
|
||||
# 5. Use single quotes for non-triple-quoted strings.
|
||||
# 5. Use single quotes in `ruff format`.
|
||||
quote-style = "single"
|
||||
```
|
||||
|
||||
|
@ -218,7 +218,7 @@ As an example, the following would configure Ruff to:
|
|||
"**/{tests,docs,tools}/*" = ["E402"]
|
||||
|
||||
[format]
|
||||
# 5. Use single quotes for non-triple-quoted strings.
|
||||
# 5. Use single quotes in `ruff format`.
|
||||
quote-style = "single"
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue