pyproject.toml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. [project]
  2. name = "reflex"
  3. version = "0.7.9dev1"
  4. description = "Web apps in pure Python."
  5. license = { text = "Apache-2.0" }
  6. authors = [
  7. { name = "Nikhil Rao", email = "nikhil@reflex.dev" },
  8. { name = "Alek Petuskey", email = "alek@reflex.dev" },
  9. { name = "Masen Furer", email = "masen@reflex.dev" },
  10. { name = "Elijah Ahianyo", email = "elijahahianyo@gmail.com" },
  11. { name = "Thomas Brandeho", email = "thomas@reflex.dev" },
  12. { name = "Khaleel Al-Adhami", email = "khaleel@reflex.dev" },
  13. ]
  14. maintainers = [
  15. { name = "Masen Furer", email = "masen@reflex.dev" },
  16. { name = "Thomas Brandeho", email = "thomas@reflex.dev" },
  17. { name = "Khaleel Al-Adhami", email = "khaleel@reflex.dev" },
  18. ]
  19. readme = "README.md"
  20. keywords = ["web", "framework"]
  21. requires-python = ">=3.10,<4.0"
  22. dependencies = [
  23. "alembic >=1.15.2,<2.0",
  24. "fastapi >=0.115.0",
  25. "granian[reload] >=2.2.5",
  26. "httpx >=0.28.0,<1.0",
  27. "jinja2 >=3.1.2,<4.0",
  28. "packaging >=24.2,<26",
  29. "platformdirs >=4.3.7,<5.0",
  30. "psutil >=7.0.0,<8.0",
  31. "pydantic >=1.10.21,<3.0",
  32. "python-socketio >=5.12.0,<6.0",
  33. "python-multipart >=0.0.20,<1.0",
  34. "redis >=5.2.1,<6.0",
  35. "reflex-hosting-cli >=0.1.43",
  36. "rich >=13,<15",
  37. "sqlmodel >=0.0.24,<0.1",
  38. "click >=8",
  39. "typing_extensions >=4.13.0",
  40. "wrapt >=1.17.0,<2.0",
  41. ]
  42. classifiers = [
  43. "Development Status :: 4 - Beta",
  44. "License :: OSI Approved :: Apache Software License",
  45. "Programming Language :: Python :: 3",
  46. "Programming Language :: Python :: 3.10",
  47. "Programming Language :: Python :: 3.11",
  48. "Programming Language :: Python :: 3.12",
  49. "Programming Language :: Python :: 3.13",
  50. ]
  51. [project.urls]
  52. homepage = "https://reflex.dev"
  53. repository = "https://github.com/reflex-dev/reflex"
  54. documentation = "https://reflex.dev/docs/getting-started/introduction"
  55. [project.scripts]
  56. reflex = "reflex.reflex:cli"
  57. [build-system]
  58. requires = ["hatchling"]
  59. build-backend = "hatchling.build"
  60. [tool.hatch.build]
  61. include = ["reflex"]
  62. [tool.hatch.build.targets.sdist]
  63. artifacts = ["*.pyi"]
  64. [tool.hatch.build.targets.wheel]
  65. artifacts = ["*.pyi"]
  66. [tool.hatch.build.hooks.custom]
  67. dependencies = ["plotly", "ruff"]
  68. require-runtime-dependencies = true
  69. [tool.pyright]
  70. reportIncompatibleMethodOverride = false
  71. [tool.ruff]
  72. target-version = "py310"
  73. output-format = "concise"
  74. lint.isort.split-on-trailing-comma = false
  75. lint.select = [
  76. "ANN001",
  77. "B",
  78. "C4",
  79. "D",
  80. "E",
  81. "ERA",
  82. "F",
  83. "FURB",
  84. "I",
  85. "N",
  86. "PERF",
  87. "PGH",
  88. "PTH",
  89. "RUF",
  90. "SIM",
  91. "T",
  92. "TRY",
  93. "UP",
  94. "W",
  95. ]
  96. lint.ignore = [
  97. "B008",
  98. "D205",
  99. "E501",
  100. "F403",
  101. "SIM115",
  102. "RUF006",
  103. "RUF008",
  104. "RUF012",
  105. "TRY0",
  106. "UP038",
  107. ]
  108. lint.pydocstyle.convention = "google"
  109. [tool.ruff.lint.per-file-ignores]
  110. "__init__.py" = ["F401"]
  111. "tests/*.py" = ["ANN001", "D100", "D103", "D104", "B018", "PERF", "T", "N"]
  112. "benchmarks/*.py" = ["ANN001", "D100", "D103", "D104", "B018", "PERF", "T", "N"]
  113. "reflex/.templates/*.py" = ["D100", "D103", "D104"]
  114. "*.pyi" = ["D301", "D415", "D417", "D418", "E742", "N", "PGH"]
  115. "pyi_generator.py" = ["N802"]
  116. "reflex/constants/*.py" = ["N"]
  117. "*/blank.py" = ["I001"]
  118. [tool.pytest.ini_options]
  119. filterwarnings = "ignore:fields may not start with an underscore:RuntimeWarning"
  120. asyncio_default_fixture_loop_scope = "function"
  121. asyncio_mode = "auto"
  122. [tool.codespell]
  123. skip = "docs/*,*.html,examples/*, *.pyi, poetry.lock, uv.lock"
  124. ignore-words-list = "te, TreeE"
  125. [dependency-groups]
  126. dev = [
  127. "asynctest >=0.13",
  128. "darglint >=1.8",
  129. "dill >=0.3",
  130. "hatchling >=1.27",
  131. "libsass >=0.23",
  132. "numpy >=2.2",
  133. "pandas >=2.2",
  134. "pillow >=11",
  135. "playwright >=1.51",
  136. "plotly >=6.0",
  137. "pre-commit >=4.2",
  138. "psycopg[binary] >=3.2",
  139. "pyright >=1.1.399",
  140. "pytest >=8.3",
  141. "pytest-asyncio >=0.26",
  142. "pytest-benchmark >=5.1",
  143. "pytest-codspeed >=3.2",
  144. "pytest-cov >=6.1",
  145. "pytest-mock >=3.14",
  146. "pytest-playwright >=0.7",
  147. "pytest-retry >=1.7",
  148. "pytest-split >=0.10",
  149. "python-dotenv >=1",
  150. "ruff >=0.11",
  151. "selenium >=4.31",
  152. "starlette-admin >=0.14",
  153. "uvicorn >=0.34.0",
  154. ]