pyproject.toml 1015 B

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