pyproject.toml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. [project]
  2. name = "reflex"
  3. version = "0.7.12dev1"
  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.47",
  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", "scripts/hatch_build.py"]
  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. path = "scripts/hatch_build.py"
  68. dependencies = ["plotly", "ruff"]
  69. require-runtime-dependencies = true
  70. [tool.pyright]
  71. reportIncompatibleMethodOverride = false
  72. [tool.ruff]
  73. target-version = "py310"
  74. output-format = "concise"
  75. lint.isort.split-on-trailing-comma = false
  76. lint.select = [
  77. "ANN001",
  78. "B",
  79. "C4",
  80. "D",
  81. "E",
  82. "ERA",
  83. "F",
  84. "FURB",
  85. "I",
  86. "N",
  87. "PERF",
  88. "PGH",
  89. "PTH",
  90. "RUF",
  91. "SIM",
  92. "T",
  93. "TRY",
  94. "UP",
  95. "W",
  96. ]
  97. lint.ignore = [
  98. "B008",
  99. "D205",
  100. "E501",
  101. "F403",
  102. "SIM115",
  103. "RUF006",
  104. "RUF008",
  105. "RUF012",
  106. "TRY0",
  107. "UP038",
  108. ]
  109. lint.pydocstyle.convention = "google"
  110. [tool.ruff.lint.per-file-ignores]
  111. "__init__.py" = ["F401"]
  112. "tests/*.py" = ["ANN001", "D100", "D103", "D104", "B018", "PERF", "T", "N"]
  113. "benchmarks/*.py" = ["ANN001", "D100", "D103", "D104", "B018", "PERF", "T", "N"]
  114. "reflex/.templates/*.py" = ["D100", "D103", "D104"]
  115. "*.pyi" = ["D301", "D415", "D417", "D418", "E742", "N", "PGH"]
  116. "pyi_generator.py" = ["N802"]
  117. "reflex/constants/*.py" = ["N"]
  118. "*/blank.py" = ["I001"]
  119. [tool.pytest.ini_options]
  120. filterwarnings = "ignore:fields may not start with an underscore:RuntimeWarning"
  121. asyncio_default_fixture_loop_scope = "function"
  122. asyncio_mode = "auto"
  123. [tool.codespell]
  124. skip = "docs/*,*.html,examples/*, *.pyi, poetry.lock, uv.lock"
  125. ignore-words-list = "te, TreeE"
  126. [dependency-groups]
  127. dev = [
  128. "asynctest >=0.13",
  129. "darglint >=1.8",
  130. "dill >=0.3",
  131. "hatchling >=1.27",
  132. "libsass >=0.23",
  133. "numpy >=2.2",
  134. "pandas >=2.2",
  135. "pillow >=11",
  136. "playwright >=1.51",
  137. "plotly >=6.0",
  138. "pre-commit >=4.2",
  139. "psycopg[binary] >=3.2",
  140. "pyright >=1.1.400",
  141. "pytest >=8.3",
  142. "pytest-asyncio >=0.26",
  143. "pytest-benchmark >=5.1",
  144. "pytest-codspeed >=3.2",
  145. "pytest-cov >=6.1",
  146. "pytest-mock >=3.14",
  147. "pytest-playwright >=0.7",
  148. "pytest-retry >=1.7",
  149. "pytest-split >=0.10",
  150. "python-dotenv >=1",
  151. "ruff >=0.11",
  152. "selenium >=4.31",
  153. "starlette-admin >=0.14",
  154. "uvicorn >=0.34.0",
  155. ]
  156. [tool.coverage.run]
  157. source = ["reflex"]
  158. branch = true
  159. omit = [
  160. "*/pyi_generator.py",
  161. "reflex/__main__.py",
  162. "reflex/app_module_for_backend.py",
  163. "reflex/components/chakra/*",
  164. "reflex/experimental/*",
  165. ]
  166. [tool.coverage.report]
  167. show_missing = true
  168. # TODO bump back to 79
  169. fail_under = 70
  170. precision = 2
  171. ignore_errors = true
  172. exclude_also = [
  173. "def __repr__",
  174. # Don't complain about missing debug-only code:
  175. "if self.debug",
  176. # Don't complain if tests don't hit defensive assertion code:
  177. "raise AssertionError",
  178. "raise NotImplementedError",
  179. # Regexes for lines to exclude from consideration
  180. "if 0:",
  181. # Don't complain if non-runnable code isn't run:
  182. "if __name__ == .__main__.:",
  183. # Don't complain about abstract methods, they aren't run:
  184. "@(abc.)?abstractmethod",
  185. # Don't complain about overloaded methods:
  186. "@overload",
  187. ]
  188. [tool.coverage.html]
  189. directory = "coverage_html_report"