Deleting lines of code which should not be deleted. #9947
-
I was in the middle of refactoring. When I save the file, it's ok. but when I add blank line before the logger_link_scrape and save, the I need that line :) why that happens?
❯ ruff check crawler.py |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Can you tell us a bit more about your set up? I assume you're using ruff in VS code. Do you have {
"[python]": {
"editor.codeActionsOnSave": {
"source.fixAll": true
}
}
} |
Beta Was this translation helpful? Give feedback.
-
My guess is that you're running into astral-sh/ruff-vscode#128 which is a VS Code bug (microsoft/vscode#174295). Can you try removing the isort extension? |
Beta Was this translation helpful? Give feedback.
My guess is that you're running into astral-sh/ruff-vscode#128 which is a VS Code bug (microsoft/vscode#174295). Can you try removing the isort extension?