pyproject.toml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. [build-system]
  2. requires = ["setuptools>=61.0", "wheel"]
  3. build-backend = "setuptools.build_meta"
  4. [project]
  5. name = "dataops-platform"
  6. version = "1.0.0"
  7. description = "DataOps Platform - 数据运营平台"
  8. authors = [
  9. {name = "DataOps Team", email = "team@dataops.com"}
  10. ]
  11. readme = "README.md"
  12. requires-python = ">=3.11"
  13. classifiers = [
  14. "Development Status :: 4 - Beta",
  15. "Intended Audience :: Developers",
  16. "License :: OSI Approved :: MIT License",
  17. "Programming Language :: Python :: 3",
  18. "Programming Language :: Python :: 3.11",
  19. ]
  20. dependencies = [
  21. "Flask>=2.3.0",
  22. "Flask-SQLAlchemy>=3.1.0",
  23. "Flask-CORS>=4.0.0",
  24. "SQLAlchemy>=2.0.0",
  25. "psycopg2-binary>=2.9.0",
  26. "python-dotenv>=1.0.0",
  27. "requests>=2.31.0",
  28. "pandas>=2.0.3",
  29. "numpy>=1.24.3",
  30. "llama-index-core==0.14.22",
  31. ]
  32. [project.optional-dependencies]
  33. dev = [
  34. "pytest>=7.4.0",
  35. "ruff>=0.8.0",
  36. "pyright>=1.1.390",
  37. ]
  38. [tool.setuptools.packages.find]
  39. where = ["."]
  40. include = ["app*"]
  41. [tool.ruff]
  42. target-version = "py311"
  43. line-length = 88
  44. [tool.ruff.lint]
  45. select = [
  46. "E", # pycodestyle errors
  47. "W", # pycodestyle warnings
  48. "F", # Pyflakes
  49. "I", # isort
  50. "B", # flake8-bugbear
  51. "C4", # flake8-comprehensions
  52. "UP", # pyupgrade
  53. "SIM", # flake8-simplify
  54. ]
  55. ignore = [
  56. "E501", # line too long (handled by formatter)
  57. "B008", # do not perform function calls in argument defaults
  58. ]
  59. [tool.ruff.lint.isort]
  60. known-first-party = ["app"]
  61. [tool.ruff.format]
  62. quote-style = "double"
  63. indent-style = "space"
  64. skip-magic-trailing-comma = false
  65. line-ending = "auto"
  66. [tool.pyright]
  67. pythonVersion = "3.11"
  68. typeCheckingMode = "basic"
  69. reportMissingImports = true
  70. reportMissingTypeStubs = false
  71. reportUnusedImport = true
  72. reportUnusedVariable = true
  73. [tool.pytest.ini_options]
  74. testpaths = ["tests"]
  75. python_files = ["test_*.py", "*_test.py"]
  76. python_classes = ["Test*"]
  77. python_functions = ["test_*"]