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

Add command to auto-add rule ignore to pyproject.toml #339

Open
janosh opened this issue Dec 9, 2023 · 1 comment
Open

Add command to auto-add rule ignore to pyproject.toml #339

janosh opened this issue Dec 9, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@janosh
Copy link

janosh commented Dec 9, 2023

If the extension detects a pyproject.toml file with

[tool.ruff]
ignore = ["..."]

would be great if the dropdown from pressing cmd+. on a violation offered a way to insert the rule code into the ignore list. I.e. in this screenshot, there should be a new option below "Disable for this line" to disable globally.

Screenshot 2023-12-09 at 9 43 19 AM

@dhruvmanila dhruvmanila transferred this issue from astral-sh/ruff-vscode Dec 11, 2023
@dhruvmanila
Copy link
Member

Related: #253

@dhruvmanila dhruvmanila added the enhancement New feature or request label Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants