Skip to content

Commit

Permalink
[Docs] Clear instruction for single quotes (linter and formatter) (#1…
Browse files Browse the repository at this point in the history
…2015)

## 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:

#12003
  • Loading branch information
jackdesert committed Jul 10, 2024
1 parent 5b21922 commit bbb9fe1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
```

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

Expand Down

0 comments on commit bbb9fe1

Please sign in to comment.