繁體中文
使用擴充功能和程式碼檢查工具設定 Python 開發環境
uv
pip install uv
ruff
pip install ruff
pip install black
settings.json
{ "python.formatting.provider": "black", "editor.formatOnSave": true, "python.formatting.blackArgs": ["--line-length", "88"] }
pip install pylint
{ "python.linting.enabled": true, "python.linting.pylintEnabled": true, "python.linting.lintOnSave": true }
pip install mypy
{ "python.linting.mypyEnabled": true }
launch.json
這個頁面有幫助嗎?