pyproject.toml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. [build-system]
  2. requires = [
  3. "cmake>=3.26",
  4. "ninja",
  5. "packaging",
  6. "setuptools >= 49.4.0",
  7. "torch == 2.4.0",
  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. exclude = [
  15. "examples/fp8/quantizer/quantize.py",
  16. "kernels/hadamard/generator.py"
  17. ]
  18. [tool.ruff.lint]
  19. select = [
  20. # pycodestyle
  21. "E",
  22. # Pyflakes
  23. "F",
  24. # pyupgrade
  25. # "UP",
  26. # flake8-bugbear
  27. "B",
  28. # flake8-simplify
  29. "SIM",
  30. # isort
  31. # "I",
  32. "G",
  33. ]
  34. ignore = [
  35. # star imports
  36. "F405", "F403",
  37. # lambda expression assignment
  38. "E731",
  39. # Loop control variable not used within loop body
  40. "B007",
  41. # f-strings in logger
  42. "G004",
  43. ]
  44. [tool.codespell]
  45. ignore-words-list = "dout, te, indicies, ist, subtile, wit, whit, beseige, devlop, serie, vor, holliday, discus, tennant, carin, parma, mor, slac, revered, chanel, sammon, nast, shepard, insead, bloc, clea"
  46. skip = "./tests/,./aphrodite/endpoints/kobold/klite.embd,./kernels/,./tests/benchmarks/sonnet.txt,./docs/,./tests/lora/data/long_context_test_data.py"
  47. [tool.isort]
  48. use_parentheses = true
  49. skip_gitignore = true