1
0

ruff.toml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. indent-width = 2
  2. preview = true
  3. target-version = "py312"
  4. lint.select = [
  5. "F", # Pyflakes
  6. "W6",
  7. "E71",
  8. "E72",
  9. "E112", # no-indented-block
  10. "E113", # unexpected-indentation
  11. # "E124",
  12. "E203", # whitespace-before-punctuation
  13. "E272", # multiple-spaces-before-keyword
  14. "E303", # too-many-blank-lines
  15. "E304", # blank-line-after-decorator
  16. "E501", # line-too-long
  17. # "E502",
  18. "E702", # multiple-statements-on-one-line-semicolon
  19. "E703", # useless-semicolon
  20. "E731", # lambda-assignment
  21. "W191", # tab-indentation
  22. "W291", # trailing-whitespace
  23. "W293", # blank-line-with-whitespace
  24. "UP039", # unnecessary-class-parentheses
  25. "C416", # unnecessary-comprehension
  26. "RET506", # superfluous-else-raise
  27. "RET507", # superfluous-else-continue
  28. "A", # builtin-variable-shadowing, builtin-argument-shadowing, builtin-attribute-shadowing
  29. "SIM105", # suppressible-exception
  30. "FURB110",# if-exp-instead-of-or-operator
  31. ]
  32. line-length = 200
  33. exclude = [
  34. "docs/",
  35. "examples/",
  36. "extra/",
  37. "exo/networking/grpc/node_service_pb2.py",
  38. "exo/networking/grpc/node_service_pb2_grpc.py",
  39. "exo/helpers.py",
  40. ]