Closed parametalol closed 8 months ago
It looks like you have flake8-quotes.inline-quotes
enabled:
[tool.ruff.flake8-quotes]
inline-quotes = 'single'
So that'll cause the linter to use single quotes when fixing. You have two options...
[tool.ruff.format]
quote-style = "single"
Awesome, thank you! I overlooked this setting somehow.
No problem! I'm glad I could help.
Hello,
The problem
When I choose to format the document, it puts strings into double quotes, but when I ask to fix problems, it changes them back to single quotes.
Configuration and environment
I installed the ruff (v2024.2.0) and Python (v2023.22.1) vscode extensions, and I guess I'm formatting Python files with 'ruff':
I do not have the Microsoft black formatter extension installed.
My
pyproject.toml
says:I didn't set extension to use external ruff binary, which is at version 0.1.14.
Python 3.12.1, Fedora 39.
Can I fix that somehow?