[Solved] How to rewrite my settings.json to use ruff as codefixer and black formattng rules? #7474
-
this is my current workspace settings.json
right now, everything else outside of "[python]" is marked as to be deprecated i like to enforce the 88 char max line length, the ignoring of E203, W503, and selecting of E, W, Fand skip removing unused imports for init.py and have the sorting of imports be done using black. How do I rewrite the to be deprecated settings? |
Beta Was this translation helpful? Give feedback.
Answered by
JonathanPlasse
Sep 18, 2023
Replies: 1 comment 7 replies
-
{
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": "always",
}
},
"ruff.args": ["--select=E,W,F,I001,PL", "--ignore=E203", "--per-file-ignores=**/__init__.py:F401"]
} I invite you to read the Ruff documentation, and its VSCode extension for further details. |
Beta Was this translation helpful? Give feedback.
7 replies
Answer selected by
simkimsia
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I invite you to read the Ruff documentation, and its VSCode extension for further details.