|
1 | 1 | { |
2 | | - "editor.tabSize": 4, |
3 | | - "editor.detectIndentation": false, |
4 | | - // "debug.toolBarLocation": "docked", |
5 | | - "editor.suggestSelection": "first", |
6 | | - "editor.fontSize": 14, |
7 | | - "editor.formatOnSave": true, |
8 | | - "editor.formatOnType": true, |
9 | | - "editor.wordWrapColumn": 250, |
10 | | - "editor.columnSelection": false, |
11 | | - "editor.mouseWheelZoom": false, |
12 | | - "explorer.confirmDelete": false, |
13 | | - "editor.renderWhitespace": "all", |
14 | | - "editor.renderControlCharacters": true, |
15 | | - "editor.suggest.shareSuggestSelections": true, |
16 | | - "editor.renderIndentGuides": false, |
17 | | - "debug.console.fontSize": 14, |
18 | | - "git.autofetch": true, |
19 | | - "[json]": { |
20 | | - "editor.defaultFormatter": "HookyQR.beautify" |
| 2 | + "[python]": { |
| 3 | + "editor.defaultFormatter": "ms-python.python" |
21 | 4 | }, |
22 | | - "[jsonc]": { |
23 | | - "editor.defaultFormatter": "HookyQR.beautify" |
24 | | - }, |
25 | | - "terminal.integrated.fontSize": 14, |
26 | | - "markdown.extension.toc.githubCompatibility": true, |
27 | | - "markdownlint.config": { |
28 | | - "MD033": false, |
29 | | - "MD034": false, |
30 | | - }, |
31 | | - "markdown.extension.katex.macros": {}, |
32 | | - "markdown.extension.toc.levels": "2..6", |
33 | | - "markdown-pdf.highlightStyle": "github.css", |
34 | | - // "markdown-pdf.headerTemplate":"<div style=\"font-size: 9px; margin-left: 1cm;\"> <span class='title'></span></div> <div style=\"font-size: 9px; margin-left: auto; margin-right: 1cm; \"> <span class='date'></span></div>", |
35 | | - "markdown-pdf.headerTemplate": "<div></div>", |
36 | | - "terminal.integrated.copyOnSelection": true, |
37 | | - // "files.autoSave": "afterDelay", |
38 | | - "files.insertFinalNewline": true, |
39 | | - "files.autoGuessEncoding": true, |
40 | | - "files.exclude": { |
41 | | - "**/.git": true, |
42 | | - "**/.svn": true, |
43 | | - "**/.hg": true, |
44 | | - "**/CVS": true, |
45 | | - "**/.DS_Store": true, |
46 | | - "**/*.pyc": true |
47 | | - }, |
48 | | - "python.analysis.extraPaths": [ |
49 | | - "./src", |
50 | | - "./mock", |
51 | | - "./test", |
52 | | - "./venv2/bin", |
53 | | - "./venv2/Lib/python2.7/site-packages" |
54 | | - ], |
| 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 | + // ], |
55 | 20 | "python.analysis.logLevel": "Trace", |
56 | | - "python.analysis.watchSearchPaths": true, |
57 | | - "python.autoComplete.extraPaths": [ |
58 | | - "./src", |
59 | | - "./mock", |
60 | | - "./tests", |
61 | | - "./venv2/bin", |
62 | | - "./venv2/Lib/python2.7/site-packages", |
63 | | - // "./venv/bin", |
64 | | - // "./venv/Lib/python3.7/site-packages", |
65 | | - ], |
| 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, |
66 | 53 | "python.envFile": "${workspaceFolder}/.env", |
67 | | - "python.pythonPath": "venv2/bin/python", |
| 54 | + // "python.pythonPath": "${workspaceFolder}/venv2/bin/python", |
| 55 | + // "python.pythonPath": "venv2/bin/python", |
| 56 | + // "python.pythonPath": "venv2\\Scripts\\python.exe", |
68 | 57 | "python.formatting.provider": "yapf", |
| 58 | + // "python.formatting.yapfArgs": [ |
| 59 | + // "--style", |
| 60 | + // "{based_on_style: pep8, indent_width: 4}" |
| 61 | + // ], |
69 | 62 | "python.formatting.yapfArgs": [ |
70 | | - "--style", "{based_on_style: pep8 ,indent_width: 4, column_limit: 130}", |
| 63 | + "--style", |
| 64 | + "{based_on_style: pep8 ,indent_width: 4, column_limit: 120}", |
71 | 65 | ], |
72 | 66 | // "python.languageServer": "Jedi", |
73 | 67 | "python.languageServer": "Pylance", |
74 | 68 | // "python.languageServer": "Microsoft", |
| 69 | + // "python.logging.level": "info", |
75 | 70 | "python.linting.enabled": true, |
76 | 71 | "python.linting.flake8Enabled": true, |
77 | 72 | "python.linting.flake8Args": [ |
78 | | - "--max-line-length=250", |
79 | | - "--ignore=E251", |
| 73 | + "--max-line-length=140", |
| 74 | + // "--ignore=E251", |
80 | 75 | "--verbose", |
81 | 76 | ], |
82 | | - "python.linting.ignorePatterns": [".vscode/*.py", "**/site-packages/**/*.py"], |
| 77 | + "python.linting.ignorePatterns": [ |
| 78 | + ".vscode/*.py", |
| 79 | + "**/site-packages/**/*.py" |
| 80 | + ], |
83 | 81 | "python.linting.lintOnSave": true, |
84 | 82 | "python.linting.pylintEnabled": false, |
85 | | - "python.testing.unittestArgs": [ |
86 | | - "-v", |
87 | | - "-s", |
88 | | - "./tests", |
89 | | - "-p", |
90 | | - "test_*.py" |
91 | | - ], |
92 | | - "python.testing.autoTestDiscoverOnSaveEnabled": true, |
| 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, |
93 | 92 | "python.testing.cwd": "${workspaceFolder}", |
94 | 93 | "python.testing.nosetestsEnabled": false, |
95 | 94 | "python.testing.pytestEnabled": false, |
96 | | - "python.testing.promptToConfigure": true, |
| 95 | + "python.testing.promptToConfigure": false, |
97 | 96 | "python.testing.unittestEnabled": true, |
98 | | - "workbench.iconTheme": "vscode-icons", |
99 | | - "workbench.editor.enablePreview": true, |
100 | | - "workbench.editor.enablePreviewFromQuickOpen": true, |
101 | | - "window.zoomLevel": 0, |
| 97 | + // "workbench.settings.openDefaultSettings": true, |
| 98 | + // "workbench.settings.editor": "ui", |
| 99 | + // "workbench.settings.openDefaultKeybindings": true, |
| 100 | + // "workbench.settings.useSplitJSON": true, |
102 | 101 | } |
0 commit comments