|
57 | 57 | "python.autoComplete.extraPaths": [ |
58 | 58 | "./src", |
59 | 59 | "./mock", |
60 | | - "./test", |
| 60 | + "./tests", |
61 | 61 | "./venv2/bin", |
62 | 62 | "./venv2/Lib/python2.7/site-packages", |
63 | 63 | // "./venv/bin", |
64 | 64 | // "./venv/Lib/python3.7/site-packages", |
65 | 65 | ], |
| 66 | + "python.envFile": "${workspaceFolder}/.env", |
66 | 67 | "python.pythonPath": "venv2/bin/python", |
67 | 68 | "python.formatting.provider": "yapf", |
68 | | - "python.languageServer": "Microsoft", |
69 | | - // "python.languageServer": "Pylance", |
70 | | - "python.linting.pylintEnabled": false, |
| 69 | + "python.formatting.yapfArgs": [ |
| 70 | + "--style", "{based_on_style: pep8 ,indent_width: 4, column_limit: 130}", |
| 71 | + ], |
| 72 | + // "python.languageServer": "Jedi", |
| 73 | + "python.languageServer": "Pylance", |
| 74 | + // "python.languageServer": "Microsoft", |
| 75 | + "python.linting.enabled": true, |
71 | 76 | "python.linting.flake8Enabled": true, |
72 | | - "python.linting.flake8Args": ["--max-line-length=250"], |
| 77 | + "python.linting.flake8Args": [ |
| 78 | + "--max-line-length=250", |
| 79 | + "--ignore=E251", |
| 80 | + "--verbose", |
| 81 | + ], |
| 82 | + "python.linting.ignorePatterns": [".vscode/*.py", "**/site-packages/**/*.py"], |
| 83 | + "python.linting.lintOnSave": true, |
| 84 | + "python.linting.pylintEnabled": false, |
73 | 85 | "python.testing.unittestArgs": [ |
74 | 86 | "-v", |
75 | 87 | "-s", |
76 | | - "./test", |
| 88 | + "./tests", |
77 | 89 | "-p", |
78 | 90 | "test_*.py" |
79 | 91 | ], |
80 | 92 | "python.testing.autoTestDiscoverOnSaveEnabled": true, |
81 | 93 | "python.testing.cwd": "${workspaceFolder}", |
82 | 94 | "python.testing.nosetestsEnabled": false, |
83 | 95 | "python.testing.pytestEnabled": false, |
| 96 | + "python.testing.promptToConfigure": true, |
84 | 97 | "python.testing.unittestEnabled": true, |
85 | 98 | "workbench.iconTheme": "vscode-icons", |
86 | 99 | "workbench.editor.enablePreview": true, |
|
0 commit comments