---
source: crates/ruff/src/rules/flake8_quotes/mod.rs
---
singles.py:1:25: Q000 [*] Single quotes found but double quotes preferred
  |
1 | this_should_be_linted = 'single quote string'
  |                         ^^^^^^^^^^^^^^^^^^^^^ Q000
2 | this_should_be_linted = u'double quote string'
3 | this_should_be_linted = f'double quote string'
  |
  = help: Replace single quotes with double quotes

ℹ Suggested fix
1   |-this_should_be_linted = 'single quote string'
  1 |+this_should_be_linted = "single quote string"
2 2 | this_should_be_linted = u'double quote string'
3 3 | this_should_be_linted = f'double quote string'
4 4 | this_should_be_linted = f'double {"quote"} string'

singles.py:2:25: Q000 [*] Single quotes found but double quotes preferred
  |
2 | this_should_be_linted = 'single quote string'
3 | this_should_be_linted = u'double quote string'
  |                         ^^^^^^^^^^^^^^^^^^^^^^ Q000
4 | this_should_be_linted = f'double quote string'
5 | this_should_be_linted = f'double {"quote"} string'
  |
  = help: Replace single quotes with double quotes

ℹ Suggested fix
1 1 | this_should_be_linted = 'single quote string'
2   |-this_should_be_linted = u'double quote string'
  2 |+this_should_be_linted = u"double quote string"
3 3 | this_should_be_linted = f'double quote string'
4 4 | this_should_be_linted = f'double {"quote"} string'

singles.py:3:25: Q000 [*] Single quotes found but double quotes preferred
  |
3 | this_should_be_linted = 'single quote string'
4 | this_should_be_linted = u'double quote string'
5 | this_should_be_linted = f'double quote string'
  |                         ^^^^^^^^^^^^^^^^^^^^^^ Q000
6 | this_should_be_linted = f'double {"quote"} string'
  |
  = help: Replace single quotes with double quotes

ℹ Suggested fix
1 1 | this_should_be_linted = 'single quote string'
2 2 | this_should_be_linted = u'double quote string'
3   |-this_should_be_linted = f'double quote string'
  3 |+this_should_be_linted = f"double quote string"
4 4 | this_should_be_linted = f'double {"quote"} string'


