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

ruff.logLevel doesn't apply the log level #161

Closed
ErikBuis opened this issue Mar 19, 2023 · 2 comments
Closed

ruff.logLevel doesn't apply the log level #161

ErikBuis opened this issue Mar 19, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@ErikBuis
Copy link

I configured the ruff.logLevel my settings.json file to be "info", but the extension keeps reporting all detected problems as warnings (yellow underlines). It seems like all other logLevel values also do not change the way these problems are displayed.

For clarity, I would like the extension to behave similarly to Flake8, where all problems are reported as information (blue underlines). For Flake8, I would use:

"python.linting.flake8CategorySeverity.E": "Information"
"python.linting.flake8CategorySeverity.W": "Information"
"python.linting.flake8CategorySeverity.F": "Information"

Additional information:
OS: Ubuntu 22.04.2 LTS
Ruff VS Code extension version: v2023.9.10740409 (Pre-Release), but the issue is also reproducible on the Release Version.
VS Code version: 1.76.2

@charliermarsh
Copy link
Member

Ah, we don't support severities like that right now, though we probably will in the future. The logLevel is related to how much logging the Ruff outputs in the VS Code logs, not the level of violations that are reported to the user.

@charliermarsh charliermarsh added the enhancement New feature or request label Mar 19, 2023
@charliermarsh
Copy link
Member

Related: astral-sh/ruff#1256

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