[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:
Jack Desert 2024-07-10 12:29:29 -04:00 committed by GitHub
parent 5b21922420
commit bbb9fe1692
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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