|
| 1 | +{ |
| 2 | + "[python]": { |
| 3 | + "editor.defaultFormatter": "ms-python.python" |
| 4 | + }, |
| 5 | + // "python.analysis.extraPaths": [ |
| 6 | + // "./src", |
| 7 | + // "./mock", |
| 8 | + // "./test", |
| 9 | + // // darwin |
| 10 | + // "./venv2/bin", |
| 11 | + // "./venv2/lib/python2.7/site-packages", |
| 12 | + // "./venv/bin", |
| 13 | + // "./venv/lib/python3.7/site-packages", |
| 14 | + // // win32 |
| 15 | + // "./venv2/Scripts", |
| 16 | + // "./venv2/Lib/site-packages", |
| 17 | + // "./venv/Scripts", |
| 18 | + // "./venv/Lib/site-packages", |
| 19 | + // ], |
| 20 | + "python.analysis.logLevel": "Trace", |
| 21 | + // "python.analysis.watchSearchPaths": true, |
| 22 | + "python.analysis.typeCheckingMode": "basic", |
| 23 | + // "python.analysis.typeCheckingMode": "strict", |
| 24 | + "python.analysis.diagnosticMode": "openFilesOnly", |
| 25 | + // https://github.com/microsoft/pylance-release/blob/main/DIAGNOSTIC_SEVERITY_RULES.md |
| 26 | + "python.analysis.diagnosticSeverityOverrides": {}, |
| 27 | + "python.analysis.useLibraryCodeForTypes": true, |
| 28 | + "python.analysis.autoImportCompletions": true, |
| 29 | + "python.autoComplete.addBrackets": true, |
| 30 | + "python.analysis.completeFunctionParens": true, |
| 31 | + // "python.autoComplete.addBrackets": false, |
| 32 | + // "python.analysis.completeFunctionParens": false, |
| 33 | + // https://marketplace.visualstudio.com/items?itemName=ms-python.vscode-pylance#settings-and-customization |
| 34 | + // "python.autoComplete.extraPaths": [ |
| 35 | + // "./src", |
| 36 | + // "./mock", |
| 37 | + // "./tests", |
| 38 | + // // darwin |
| 39 | + // "./venv2/bin", |
| 40 | + // "./venv2/lib/python2.7/site-packages", |
| 41 | + // "./venv/bin", |
| 42 | + // "./venv/lib/python3.7/site-packages", |
| 43 | + // // win32 |
| 44 | + // "./venv2/Scripts", |
| 45 | + // "./venv2/Lib/site-packages", |
| 46 | + // "./venv/Scripts", |
| 47 | + // "./venv/Lib/site-packages", |
| 48 | + // ], |
| 49 | + // "python.autoUpdateLanguageServer": true, |
| 50 | + // "python.defaultInterpreterPath": "${workspaceFolder}/venv2/bin/python", |
| 51 | + // "python.defaultInterpreterPath": "venv2/bin/python", |
| 52 | + // "python.diagnostics.sourceMapsEnabled": true, |
| 53 | + "python.envFile": "${workspaceFolder}/.env", |
| 54 | + // "python.pythonPath": "${workspaceFolder}/venv2/bin/python", |
| 55 | + // "python.pythonPath": "venv2/bin/python", |
| 56 | + // "python.pythonPath": "venv2\\Scripts\\python.exe", |
| 57 | + "python.formatting.provider": "yapf", |
| 58 | + // "python.formatting.yapfArgs": [ |
| 59 | + // "--style", |
| 60 | + // "{based_on_style: pep8, indent_width: 4}" |
| 61 | + // ], |
| 62 | + "python.formatting.yapfArgs": [ |
| 63 | + "--style", |
| 64 | + "{based_on_style: pep8 ,indent_width: 4, column_limit: 120}", |
| 65 | + ], |
| 66 | + // "python.languageServer": "Jedi", |
| 67 | + "python.languageServer": "Pylance", |
| 68 | + // "python.languageServer": "Microsoft", |
| 69 | + // "python.logging.level": "info", |
| 70 | + "python.linting.enabled": true, |
| 71 | + "python.linting.flake8Enabled": true, |
| 72 | + "python.linting.flake8Args": [ |
| 73 | + "--max-line-length=140", |
| 74 | + // "--ignore=E251", |
| 75 | + "--verbose", |
| 76 | + ], |
| 77 | + "python.linting.ignorePatterns": [ |
| 78 | + ".vscode/*.py", |
| 79 | + "**/site-packages/**/*.py" |
| 80 | + ], |
| 81 | + "python.linting.lintOnSave": true, |
| 82 | + "python.linting.pylintEnabled": false, |
| 83 | + // https://github.com/microsoft/vscode-python/discussions/15997#discussioncomment-636389 |
| 84 | + // "python.testing.unittestArgs": [ |
| 85 | + // "-v", |
| 86 | + // "-s", |
| 87 | + // "./tests", |
| 88 | + // "-p", |
| 89 | + // "test_*.py" |
| 90 | + // ], |
| 91 | + // "python.testing.autoTestDiscoverOnSaveEnabled": true, |
| 92 | + "python.testing.cwd": "${workspaceFolder}", |
| 93 | + "python.testing.nosetestsEnabled": false, |
| 94 | + "python.testing.pytestEnabled": false, |
| 95 | + "python.testing.promptToConfigure": false, |
| 96 | + "python.testing.unittestEnabled": true, |
| 97 | + // "workbench.settings.openDefaultSettings": true, |
| 98 | + // "workbench.settings.editor": "ui", |
| 99 | + // "workbench.settings.openDefaultKeybindings": true, |
| 100 | + // "workbench.settings.useSplitJSON": true, |
| 101 | +} |
0 commit comments