pyproject.toml 699 B

123456789101112131415161718192021222324252627
  1. [tool.ruff]
  2. line-length = 119
  3. [tool.ruff.lint]
  4. # Never enforce `E501` (line length violations).
  5. ignore = ["C901", "E501", "E741", "F402", "F823"]
  6. select = ["C", "E", "F", "I", "W"]
  7. # Ignore import violations in all `__init__.py` files.
  8. [tool.ruff.lint.per-file-ignores]
  9. "__init__.py" = ["E402", "F401", "F403", "F811"]
  10. [tool.ruff.lint.isort]
  11. lines-after-imports = 2
  12. [tool.ruff.format]
  13. # Like Black, use double quotes for strings.
  14. quote-style = "double"
  15. # Like Black, indent with spaces, rather than tabs.
  16. indent-style = "space"
  17. # Like Black, respect magic trailing commas.
  18. skip-magic-trailing-comma = false
  19. # Like Black, automatically detect the appropriate line ending.
  20. line-ending = "auto"