瀏覽代碼

isort und black

gc-server3 10 月之前
父節點
當前提交
979eef9b87
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. 6 2
      .vscode/settings.json

+ 6 - 2
.vscode/settings.json

@@ -1,8 +1,12 @@
-{  
+{
     "[python]": {
         "editor.defaultFormatter": "ms-python.black-formatter",
-        "editor.formatOnSave": true
+        "editor.formatOnSave": true,
+        "editor.codeActionsOnSave": {
+            "source.organizeImports": "explicit",
+        },
     },
+    "isort.args":["--profile", "black"],
     "black-formatter.args": ["--line-length", "120"],
     "python.testing.pytestEnabled": false,
     "python.testing.unittestEnabled": true,