All Questions
Tagged with ruff visual-studio-code
9 questions
0
votes
2
answers
33
views
VSCode ruff ignores ruff.toml
For a project I have created a ruff.toml file. In this file is among other things a different line-length defined. When ruff is used from the cli ruff format it works as expected. But when I use Ruff: ...
0
votes
0
answers
45
views
Ruff ignore F401
I am working with VScode and python. I installed ruff because I really like it, but thee one thing I don't like is the F401 error, which basically automatically removes the unused libraries when I try ...
0
votes
0
answers
78
views
ruff format document on save in VS Code *for real*
How do I convince ruff and VS Code to actually Format document on save? What I mean is that when I save a Python file, and do "Ruff: Format document", I get different results. I want saving ...
0
votes
0
answers
98
views
Information about ruff rule when hovering above noqa in VS code
I just moved to a new laptop and apparently many settings weren't transferred despite it theoretically being sync'ed to my account.
On my previous system, whenever I would hover my mouse above a ...
10
votes
1
answer
4k
views
Configure VS Code using settings.json to use ruff instead of pylint, pylance, etc
I am looking to be able to set up settings.json used by VS Code so that I can use ruff instead of pylint, pylance, flake8 linting. I am hoping to get the rules into settings.json and not have ...
9
votes
1
answer
7k
views
Using Ruff with VSCode, how to prevent automatic removal of unused imports
I'm using VSCode with the Ruff extension for linting and autoformat. I know the cost of unused imports but sometimes I just need to comment a line for a test and it's really bothering to see the ...
0
votes
1
answer
2k
views
How to ignore ruff errors in jupyter notebook in VSCode?
I am using ruff to lint and format my Python code in Visual Studio Code. I also work often with jupyter notebooks inside VSCode. When I do that I get some ruff linting errors that don't really make ...
7
votes
3
answers
31k
views
Using Ruff Linter with Python in VS Code
I have installed the Ruff extension and enabled it in VS Code, but it doesn't seem to be underlining my code at all and providing suggestions like my previous linters did.
I did a clean install of VS ...
3
votes
1
answer
1k
views
How to remove trailing comma for Python code formatter Ruff
Before applying the ruff formatter
def method(arg1, arg2, arg3, ..., arg10):
After applying the ruff formatter
def method(
arg1,
arg2,
arg3,
...,
arg10,
)
Is there a way to ...