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

ℹ Safe fix
1   |-this_should_be_linted = "double quote string"
  1 |+this_should_be_linted = 'double 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"

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

ℹ Safe fix
1 1 | this_should_be_linted = "double 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"

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

ℹ Safe fix
1 1 | this_should_be_linted = "double 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"


