ruff.toml:
select = ['Q']
[flake8-quotes]
inline-quotes = 'single'
multiline-quotes = 'single'
docstring-quotes = 'double'
avoid-escape = true
Code:
ruff output:
[adrian@claptrap:/tmp/rufftest]> ~/dev/ruff/target/release/ruff check --no-cache test.py
test.py:1:5: Q000 [*] Double quotes found but single quotes preferred
Found 1 error.
[*] 1 fixable with the `--fix` option.
And after running with --fix added:
While not invalid, this is ugly - in particular since avoid-escape is enabled. It should have been this: