mirror of https://github.com/astral-sh/ruff
[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
|
|
@ -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…
Reference in New Issue