from VSC
orchestra: How to Install Ruff for Python on VS Code
Auto Linting
- Install the Ruff Extension from vsc marketplace
- add these to
settings.json
"python.linting.enabled": true,
"python.linting.ruffEnabled": true,
"python.linting.lintOnSave": true,
"python.linting.enabledWithoutWorkspace": true
- run
pip install black from your env
- add these to
settings.json
"python.formatting.provider": "black",
"python.formatting.blackArgs": [
"--line-length",
"88"
],
"editor.formatOnSave": true
- run
black {dir}