Browse Source

isort und black

gc-server3 10 tháng trước cách đây
mục cha
commit
979eef9b87
1 tập tin đã thay đổi với 6 bổ sung2 xóa
  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,