mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-30 04:50:16 +08:00
style(ruff): provide better integration with ruff vscode extension (#1994)
* style(ruff): use default python setttings * style(ruff): add ruff extension to `devcontainer.json`
This commit is contained in:
1 parent
76165fcd02
commit
46bc8fe7cc
2 files changed
+4
-4
No files matched your search
@@ -8,6 +8,7 @@
|
|||||||
"mutantdino.resourcemonitor",
|
"mutantdino.resourcemonitor",
|
||||||
"ms-azuretools.vscode-docker",
|
"ms-azuretools.vscode-docker",
|
||||||
"nvidia.nsight-vscode-edition",
|
"nvidia.nsight-vscode-edition",
|
||||||
"ms-python.python"
|
"ms-python.python",
|
||||||
|
"charliermarsh.ruff"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Vendored
+2
-3
@@ -26,7 +26,8 @@
|
|||||||
"[python]": {
|
"[python]": {
|
||||||
"editor.defaultFormatter": "ms-python.python",
|
"editor.defaultFormatter": "ms-python.python",
|
||||||
"editor.codeActionsOnSave": {
|
"editor.codeActionsOnSave": {
|
||||||
"source.organizeImports": true
|
"source.organizeImports": true,
|
||||||
|
"source.fixAll": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"editor.formatOnSave": true,
|
"editor.formatOnSave": true,
|
||||||
@@ -36,7 +37,6 @@
|
|||||||
"python.linting.pylintEnabled": false,
|
"python.linting.pylintEnabled": false,
|
||||||
"python.linting.flake8Enabled": false,
|
"python.linting.flake8Enabled": false,
|
||||||
"python.linting.enabled": true,
|
"python.linting.enabled": true,
|
||||||
"python.sortImports.args": ["--src=${workspaceFolder}", "--profile", "black"],
|
|
||||||
"python.testing.unittestEnabled": false,
|
"python.testing.unittestEnabled": false,
|
||||||
"python.testing.pytestEnabled": true,
|
"python.testing.pytestEnabled": true,
|
||||||
"python.linting.ignorePatterns": [
|
"python.linting.ignorePatterns": [
|
||||||
@@ -123,5 +123,4 @@
|
|||||||
"python.analysis.typeCheckingMode": "basic",
|
"python.analysis.typeCheckingMode": "basic",
|
||||||
"python.analysis.diagnosticMode": "workspace",
|
"python.analysis.diagnosticMode": "workspace",
|
||||||
"eslint.packageManager": "yarn",
|
"eslint.packageManager": "yarn",
|
||||||
"ruff.fixAll": true
|
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user