Skip to content

Instantly share code, notes, and snippets.

@niftycode
Created August 5, 2021 07:33
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niftycode/31c709d98b6813e9a2a9d2c6d3578608 to your computer and use it in GitHub Desktop.
Save niftycode/31c709d98b6813e9a2a9d2c6d3578608 to your computer and use it in GitHub Desktop.
VS Code settings for flake8 and autopep8
{
// Whether to lint Python files
"python.linting.enabled": true,
"python.linting.pylintEnabled": false,
"python.linting.flake8Enabled": true,
// Path to flake8 executable
"python.linting.flake8Path": "/Library/Frameworks/Python.framework/Versions/3.9/bin/flake8",
// Flake8 Arguments
"python.linting.flake8Args": ["--ignore=E501, E128, W605", "--verbose", "--exclude=__init__.py"],
// Formatting: Use AutoPep8
"python.formatting.provider": "autopep8",
"[python]" : {
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {"source.organizeImports": true}
},
// More settings goes here...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment