ruff.toml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. exclude = [
  2. "netbox/project-static/**"
  3. ]
  4. line-length = 120
  5. target-version = "py310"
  6. [lint]
  7. extend-select = [
  8. "E1", # pycodestyle errors: indentation-related (e.g., unexpected/missing indent)
  9. "E2", # pycodestyle errors: whitespace-related (e.g., missing whitespace, extra spaces)
  10. "E3", # pycodestyle errors: blank lines / spacing around definitions
  11. "E501", # pycodestyle: line too long (enforced with `line-length` above)
  12. "W", # pycodestyle warnings (various style warnings, often whitespace/newlines)
  13. "I", # import sorting (isort-equivalent)
  14. ]
  15. ignore = [
  16. "F403", # pyflakes: `from ... import *` used; unable to detect undefined names
  17. "F405", # pyflakes: name may be undefined or defined from star imports
  18. ]
  19. [lint.isort]
  20. known-first-party = [
  21. "account",
  22. "circuits",
  23. "core",
  24. "dcim",
  25. "extras",
  26. "ipam",
  27. "netbox",
  28. "tenancy",
  29. "users",
  30. "utilities",
  31. "virtualization",
  32. "vpn",
  33. "wireless",
  34. ]
  35. [lint.per-file-ignores]
  36. "template_code.py" = ["E501"]
  37. [format]
  38. quote-style = "single"