Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to ignore rule Q000 #10760

Closed
kohlerjl opened this issue Apr 3, 2024 · 1 comment
Closed

Unable to ignore rule Q000 #10760

kohlerjl opened this issue Apr 3, 2024 · 1 comment

Comments

@kohlerjl
Copy link

kohlerjl commented Apr 3, 2024

Using the latest Ruff version (0.3.5), my configuration to ignore rule Q000 ("Single quotes found but double quotes preferred") is no longer respected.

Here's an example file test.py

test = 'hello, world'

And configuration ruff.toml

[lint]

select = [
   "Q", # flake8-quotes
]

ignore = [
    "Q000",  # Single quotes found but double quotes preferred
]

Using version 0.3.5 I get output:

(main) C:\Users\VA\test>ruff version
ruff 0.3.5 (200ebeebd 2024-04-01)

(main) C:\Users\VA\test>ruff check
test.py:1:8: Q000 Single quotes found but double quotes preferred
Found 1 error.

This only occurs on version 0.3.5, and is not present in 0.3.4

(main) C:\Users\VA\test>ruff version
ruff 0.3.4 (5062572ac 2024-03-21)

(main) C:\Users\VA\test>ruff check
All checks passed!
@AlexWaygood
Copy link
Member

Thanks for opening the issue! Luckily this has already been fixed on the main branch, so the fix will definitely be included in the next release :-)

Closing as a duplicate of #10724

@AlexWaygood AlexWaygood closed this as not planned Won't fix, can't repro, duplicate, stale Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants