settings.json 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. {
  2. "python.pythonPath": "${workspaceFolder}/.venv",
  3. // PEP8 settings (https://www.python.org/dev/peps/pep-0008/)
  4. "editor.tabSize": 4,
  5. "editor.insertSpaces": true,
  6. "editor.wordWrapColumn": 80,
  7. "editor.wordWrap": "wordWrapColumn",
  8. // Single newline at end of file
  9. "files.trimTrailingWhitespace": true,
  10. "files.insertFinalNewline": true,
  11. "files.trimFinalNewlines": true,
  12. // Always format on save
  13. "editor.formatOnSave": true,
  14. // Linting and code qualiy
  15. "python.linting.enabled": true,
  16. "python.linting.lintOnSave": true,
  17. "python.linting.pylintEnabled": false,
  18. "python.linting.flake8Enabled": true,
  19. "python.linting.flake8Args": [
  20. "--verbose"
  21. ],
  22. // Unit testing (only one framework can be active)
  23. "python.testing.unittestEnabled": false,
  24. "python.testing.nosetestsEnabled": false,
  25. "python.testing.pytestEnabled": true,
  26. "python.testing.pytestArgs": [],
  27. "[python]": {
  28. "editor.codeActionsOnSave": {
  29. "source.organizeImports": true
  30. }
  31. }
  32. }