pyproject.toml 999 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. [build-system]
  2. requires = [
  3. "ninja",
  4. "packaging",
  5. "setuptools",
  6. "torch >= 2.1.2",
  7. "wheel",
  8. ]
  9. build-backend = "setuptools.build_meta"
  10. [tool.ruff]
  11. # Allow lines to be as long as 80.
  12. line-length = 80
  13. [tool.ruff.lint]
  14. select = [
  15. # pycodestyle
  16. "E",
  17. # Pyflakes
  18. "F",
  19. # pyupgrade
  20. # "UP",
  21. # flake8-bugbear
  22. "B",
  23. # flake8-simplify
  24. "SIM",
  25. # isort
  26. # "I",
  27. ]
  28. ignore = [
  29. # wildcard imports
  30. "F405", "F403",
  31. # lambda expression assignment
  32. "E731",
  33. # .strip() with multi-character strings
  34. "B005",
  35. # Loop control variable not used within loop body
  36. "B007",
  37. ]
  38. [tool.mypy]
  39. python_version = "3.8"
  40. ignore_missing_imports = true
  41. files = "aphrodite"
  42. # TODO: Include the code from Megatron and HuggingFace.
  43. exclude = "aphrodite/modeling/megatron/|aphrodite/modeling/models/|aphrodite/endpoints/kobold/klite.embd"
  44. [tool.codespell]
  45. ignore-words-list = "dout, te, indicies"
  46. skip = "./aphrodite/endpoints/kobold/klite.embd"