settings.json 1.1 KB

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