settings.json 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  1. {
  2. "autopep8.args": ["--max-line-length=120"],
  3. "editor.defaultFormatter": "esbenp.prettier-vscode",
  4. "editor.formatOnSave": true,
  5. "prettier.printWidth": 120,
  6. "pylint.args": [
  7. "--disable=C0103", // Invalid name (e.g., variable/function/class naming conventions)
  8. "--disable=C0114", // Missing module docstring
  9. "--disable=C0115", // Missing class docstring
  10. "--disable=C0301", // Line too long (exceeds character limit)
  11. "--disable=C0302", // Too many lines in module
  12. "--disable=R0801", // Similar lines in files
  13. "--disable=R0902", // Too many instance attributes
  14. "--disable=R0903", // Too few public methods
  15. "--disable=R0904", // Too many public methods
  16. "--disable=R0911", // Too many return statements
  17. "--disable=R0912", // Too many branches
  18. "--disable=R0913", // Too many arguments
  19. "--disable=R0914", // Too many local variables
  20. "--disable=R0915", // Too many statements
  21. "--disable=R1705", // Unnecessary "else" after "return"
  22. "--disable=W0102", // Dangerous default value as argument
  23. "--disable=W0718", // Catching too general exception
  24. "--disable=W1203", // Use % formatting in logging functions
  25. "--disable=W1514" // Using open without explicitly specifying an encoding
  26. ],
  27. "python.testing.pytestArgs": ["."],
  28. "python.testing.pytestEnabled": true,
  29. "python.testing.unittestEnabled": false,
  30. "[python]": {
  31. "editor.defaultFormatter": "ms-python.autopep8",
  32. "editor.codeActionsOnSave": {
  33. "source.fixAll.ruff": "always"
  34. }
  35. }
  36. }