Last active
February 27, 2021 00:35
-
-
Save jlmelville/7a813bd369a55ee63ac67e5453d081ca to your computer and use it in GitHub Desktop.
Windows Python-based VS Code settings with lots of linting turned on
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Mercifully, comments are allowed in VS Code JSON | |
| // "Global" User Settings: | |
| { | |
| "diffEditor.ignoreTrimWhitespace": false, | |
| "editor.detectIndentation": false, | |
| "git.autofetch": true, | |
| "terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\cmd.exe", | |
| "diffEditor.renderSideBySide": false, | |
| "workbench.colorTheme": "Dank Neon", | |
| "editor.suggestSelection": "first", | |
| "problems.autoReveal": false, | |
| "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue", | |
| "workbench.editor.enablePreview": false, | |
| "python.condaPath": "path\\to\\Anaconda\\Scripts", | |
| "python.jediEnabled": false, | |
| "python.linting.enabled": true, | |
| "python.linting.banditEnabled": true, | |
| "python.linting.banditArgs": [ | |
| "-c", | |
| "bandit.yml" | |
| ], | |
| "python.linting.flake8Enabled": true, // contains pyflakes pycodestyle and mccabe | |
| "python.linting.mypyEnabled": false, // static type checker, pointless unless you are using typehints | |
| "python.linting.pep8Enabled": false, // supserseded by pycodestyle | |
| /* prospector: dodgy, frosted, mccabe, pycodestyle, pydocstyle, pyflakes, pylint, pyroma, vulture */ | |
| "python.linting.prospectorEnabled": true, | |
| "python.linting.pylamaEnabled": true, // mccabe, pycodestyle, pydocstyle, pyflakes, pylint, radon | |
| "python.linting.pylintEnabled": true, | |
| "python.linting.pylintUseMinimalCheckers": false | |
| } | |
| // A local project folder (in .vscode) settings.json" | |
| { | |
| "python.pythonPath": "path\\to\\python.exe", | |
| // turn on selectively: way too annoying to use with test files and my attempts to configure it | |
| // via regex in setup.cfg (negative lookahead doesn't work?) have failed | |
| // pylint and pylama pick up worst problems | |
| "python.linting.pydocstyleEnabled": false | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment