Skip to content

Commit a0b03ea

Browse files
author
Release Manager
committed
gh-42145: Set ruff format quote-style to preserve We have not adopted a strict rule throughout the project on using `'` versus `"` for quotes. This PR changes our ruff configuration to leave quotes alone, so that developers can use `ruff format` without creating large diffs that mostly just change `'` to `"`. If we ever decide to enforce either single or double quotes, we can just change this config option then. Hopefully this makes it easier to use `ruff format` more often when developing Sage without cluttering diffs. ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [ ] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - #12345: short description why this is a dependency --> <!-- - #34567: ... --> URL: #42145 Reported by: Vincent Macri Reviewer(s): Antoine Leudière
2 parents c25262c + 404c224 commit a0b03ea

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,9 @@ exclude = [
262262
"build/",
263263
]
264264

265+
[tool.ruff.format]
266+
quote-style = "preserve"
267+
265268
[tool.ruff.lint]
266269

267270
# Rules that we deliberately do not attempt to follow, either because we

0 commit comments

Comments
 (0)