-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add f-string formatting to the docs (#15341)
## Summary This PR adds a new f-string formatting section to the documentation. It adds it to the https://docs.astral.sh/ruff/formatter page and provides a backlink in the deviation section as well. There isn't a great place to add this kind of section in our documentation as ideally it would go under "Ruff code style" (similar to [Black code style](https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html)) section. ### Question I've found having the "Quotes" and "Line breaks" section in structuring the content but I'm open to removing them. Any opinions are welcome! There can be more content to it but I'm not sure if we want to provide a lot of details. For example, we can expand on the "Quotes" section to enumerate all additional cases where we preserve the quote style. ### Preview <img width="755" alt="Screenshot 2025-01-08 at 9 26 39 PM" src="https://github.com/user-attachments/assets/4c77c012-3a2a-4fc1-92c7-b6e4f1ebad71" /> <!-- <img width="1203" alt="Screenshot 2025-01-08 at 3 51 03 PM" src="https://github.com/user-attachments/assets/1e8cb401-9584-4705-9c15-3fe308466c62" /> -->
- Loading branch information
1 parent
218831b
commit a1d3557
Showing
4 changed files
with
110 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters