mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-21 21:52:11 +00:00
* empty* comments and code reuse * lint * more cpplint * add cpplint settings * test empty
43 lines
1.1 KiB
JSON
43 lines
1.1 KiB
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.pylintEnabled": true,
|
|
"python.linting.pydocstyleEnabled": true,
|
|
"python.linting.pydocstyleArgs": [
|
|
"--convention=google"
|
|
],
|
|
"python.linting.banditEnabled": true,
|
|
"cpplint.lineLength": 120,
|
|
"cpplint.filters": [
|
|
"-build/include_subdir",
|
|
"-runtime/references"
|
|
]
|
|
}
|