mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-03 22:38:48 +08:00
Use ruff as linter and formatter (#2765)
* Switch from black to ruff format * Sort dependencies with ruff check * Run ruff format
This commit is contained in:
1 parent
69ed6d4093
commit
f0aadf9de8
83 files changed
+208
-429
No files matched your search
Vendored
+4
-4
@@ -24,16 +24,16 @@
|
||||
"typescript.suggestionActions.enabled": false,
|
||||
"javascript.suggestionActions.enabled": false,
|
||||
"[python]": {
|
||||
"editor.defaultFormatter": "ms-python.black-formatter",
|
||||
"editor.defaultFormatter": "charliermarsh.ruff",
|
||||
"editor.codeActionsOnSave": {
|
||||
"source.organizeImports": true,
|
||||
"source.fixAll": true
|
||||
"source.organizeImports": "explicit",
|
||||
"source.fixAll": "explicit"
|
||||
}
|
||||
},
|
||||
"editor.formatOnSave": true,
|
||||
"editor.rulers": [120],
|
||||
"python.envFile": "${workspaceFolder}/.env",
|
||||
"python.formatting.provider": "none",
|
||||
"black-formatter.args": ["--line-length=120"],
|
||||
"python.linting.pylintEnabled": false,
|
||||
"python.linting.flake8Enabled": false,
|
||||
"python.linting.enabled": true,
|
||||
|
||||
Reference in new issue
Block a user