mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-08 17:17:15 +00:00
Add python docstring linting in vscode settings Use black and isort for python code formatting in VScode. Import sorting enabled on save. Code formatting available in VSCode with manual trigger. Adopted from pytorch https://github.com/pytorch/pytorch/blob/master/.vscode/settings_recommended.json
36 lines
963 B
JSON
36 lines
963 B
JSON
{
|
|
// Always remove trailing whitespaces
|
|
"files.trimTrailingWhitespace": true,
|
|
"files.insertFinalNewline": true,
|
|
"files.trimFinalNewlines": true,
|
|
"editor.rulers": [
|
|
120
|
|
],
|
|
"[python]": {
|
|
"editor.tabSize": 4,
|
|
// Auto sort imports
|
|
"editor.formatOnSave": true,
|
|
"editor.codeActionsOnSave": {
|
|
"source.organizeImports": true
|
|
},
|
|
},
|
|
// Enable Python linting and Pylance type checking
|
|
"python.analysis.typeCheckingMode": "basic",
|
|
"python.formatting.provider": "black",
|
|
"python.formatting.blackArgs": [
|
|
"--line-length",
|
|
"120"
|
|
],
|
|
"python.sortImports.args": [
|
|
"--profile",
|
|
"black",
|
|
"--line-length",
|
|
"120"
|
|
],
|
|
"python.linting.enabled": true,
|
|
"python.linting.flake8Enabled": true,
|
|
"python.linting.pydocstyleEnabled": true,
|
|
"python.linting.pydocstyleArgs": [
|
|
"--convention=google"
|
|
]
|
|
}
|