-
-
Notifications
You must be signed in to change notification settings - Fork 117
Expand file tree
/
Copy pathpyproject.toml
More file actions
222 lines (208 loc) · 6.48 KB
/
Copy pathpyproject.toml
File metadata and controls
222 lines (208 loc) · 6.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
# Root pyproject.toml file.
# Uses UV not Poetry -- conversion to uv in June 2026
[project]
name = "rs"
version = "9.0.11"
description = ""
authors = [{ name = "Brad Miller", email = "bonelake@mac.com" }]
requires-python = ">=3.13,<4"
readme = "README.rst"
license = "MIT"
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dependencies = [
"aiofiles>=0.8.0,<0.9",
"aiohttp>=3.11.11,<4",
"aioredis>=2.0.1,<3",
"aiosqlite>=0.18.0,<0.19",
"alembic>=1.13.1,<2",
"altair>=4.2.0,<5",
"asyncclick>=8.1.3.4,<9",
"asyncpg>=0.30.0,<0.31",
"beautifulsoup4>=4.0.0,<5",
"bleach>=6.0.0,<7",
"boto3>=1.26.88,<2",
"botocore>=1.29.87,<2",
"celery>=5.2.7,<6",
"cryptography>=46.0.0,<47",
"cssselect>= 1.0",
"dash[celery, diskcache]>=2.7.0,<3",
"diff-match-patch>= 20110725.1",
"fastapi>=0.115.0,<0.116",
"fastapi-login>=1.10.0,<2",
"gunicorn>=20.1.0,<21",
"ipyleaflet>=0.19.2,<0.20",
"ipython>=8.23.0,<9",
"Jinja2>=3.0.0,<4",
"jwcrypto>=1.5.6,<2",
"lxml>=6.0,<7",
"mistune>=3.0,<4",
"multi-await>=1.0.4,<2",
"numpy>= 1.9.2",
"oauth2>=1.9",
"pandas[pyarrow]>=2.3.0,<3",
"paver>=1.3.4,<2",
"pgcli>=4.0.0,<5",
"pretext[prefigure]>=2.48",
"psycopg2-binary>=2.9.3,<3",
"pycryptodome>=3.18.0,<4",
"pydal>=20230521.1",
"pydantic>=2.0.0,<3",
"pydantic-settings>=2.0.3,<3",
"pyhumps>=3.8.0,<4",
"pyjwt>=2.0.0,<3",
"pylint>= 1.2.1",
"python-dateutil>=2.8.2,<3",
"python-dotenv>=1.0.0,<2",
"python-multipart>=0.0.5,<0.0.6",
"pytz>= 2016.6.1",
"redis>=4.3.4,<5",
"requests>=2.28.1,<3",
"rich>=13.3.5,<14",
"scikit-learn>=1.5.1,<2",
"SQLAlchemy>=2.0.0,<3",
"Starlette-WTF>=0.4.3,<0.5",
"stripe>=2.0.0,<3",
"toml>=0.10.2,<0.11",
"tqdm>=4.65.0,<5",
"uvicorn>=0.27.0,<0.28",
"WTForms>=3.0.0,<4",
"itsdangerous>=2.2.0,<3",
"standard-asyncore>=3.13.0,<4",
"standard-imghdr>=3.13.0,<4",
"standard-cgi>=3.13.0,<4",
"duckdb>=1.3.2,<2",
"tldextract>=5.0.0,<6",
"textual>=0.86.0",
]
[project.scripts]
buildptx = "rsptx.interactives.scripts.buildptx:build_book"
build = "rsptx.build_tools.build:cli"
build_books = "rsptx.build_tools.build_books:build_books"
build_mon = "rsptx.build_tools.build_mon:main"
rsmanage = "rsptx.rsmanage.core:cli"
tbm = "rsptx.build_tools.traceback_monitor:main"
[dependency-groups]
dev = [
"black~= 25.0",
"CodeChat>=1.9.3,<2",
"contextlib2>=0.6.0,<0.7",
"coverage>=6.0.0,<7",
"coveralls>=3.0.0,<4",
"flake8>=7.0.0,<8",
"html5validator>=0.3.0,<0.4",
"isort>=5,<6",
"mock>=4.0.0,<5",
"mypy>=1,<2",
"polling2>=0.5.0,<0.6",
"pytest>=8.0.0,<9",
"pyvirtualdisplay>=3.0.0,<4",
"pywin32>= 301 ; sys_platform == 'win32'",
"selenium>=3.0.0,<4",
"json2xml>=3.21.0,<4",
"pytest-asyncio>=0.24.0,<0.25",
"openai>=1.59.3,<2",
"javalang>=0.13.0,<0.14",
"pre-commit>=4.5.1,<5",
"ruff>=0.15.2,<0.16",
"polylith-cli>=1.40.0",
# Nothing imports this directly: uvicorn --reload picks watchfiles when it is
# installed and otherwise falls back to StatReload, which stats the whole
# tree every 0.25s and burns most of a core. See issue #371.
"watchfiles>=1.0,<2",
]
docs = [
"sphinx-click>=6.0.0,<7",
"Sphinx>=5.0.0,<6",
"sphinx-reredirects>=0.1.1,<0.2",
"sphinxcontrib-paverutils>=1.18.1,<2",
"jupyter-sphinx<0.5",
"jupyterlab>=4.2.4,<5",
"jupyterlite-sphinx>=0.9.3,<0.10",
"myst-parser>=1.0.0,<2",
"cogapp>=3.3.0,<4",
]
# This root project is the DEVELOPMENT environment only -- it is never built
# into a deployed wheel (each service under projects/ builds its own isolated
# wheel). `uv sync` installs it editable; dev-mode-dirs puts the Polylith brick
# source directories on the path so every `rsptx.*` brick (plus the top-level
# `runestone` and `development` packages) is importable and live-editable.
[tool.hatch.build]
dev-mode-dirs = ["components", "bases", "bases/rsptx/interactives", "development", "."]
# bypass-selection: the importable code lives in the dev-mode-dirs above rather
# than in a package directory named after this project, which is intentional.
[tool.hatch.build.targets.wheel]
bypass-selection = true
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
# Poetry installed every dependency group by default; uv installs only `dev` by
# default. Replicate the old behavior so the dev environment is complete (e.g.
# the build/rsmanage CLIs pull in the runestone interactives, which needs sphinx
# from the docs group). `uv sync` now installs main + dev + docs.
[tool.uv]
default-groups = ["dev", "docs"]
# isort configuration
# -------------------
# See the [docs](https://pycqa.github.io/isort/docs/configuration/black_compatibility.html).
[tool.isort]
profile = "black"
[tool.ruff]
exclude = ["bases/rsptx/interactives", "bases/rsptx/dash_server_api", "__pycache__", ".claude", ".git", ".tox", ".venv", "build", "dist", "docs", "htmlcov", "node_modules", "venv"]
[tool.ruff.lint]
ignore = ["E501"]
exclude = [
".claude",
".venv",
"build",
"dist",
"docs/_build",
"bases/rsptx/interactives/runestone",
"bases/rsptx/dash_server_api",
"bases/rsptx/library_server_api",
]
[tool.ruff.format]
quote-style = "double" # matches Black
indent-style = "space" # matches Black
skip-magic-trailing-comma = false # respect Black's magic trailing comma
line-ending = "auto"
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "session"
addopts = "--import-mode=importlib"
pythonpath = ["components", "bases", "."]
testpaths = ["test"]
norecursedirs = [
".claude",
"bases/rsptx/interactives",
"bases/rsptx/dash_server_api",
".venv",
"projects",
"migrations",
"dist",
"build",
"node_modules",
]
[tool.black]
line-length = 88
# Ignore directories using regex
exclude = '''
(
(^|/)(\.claude|\.git|\.mypy_cache|\.pytest_cache|\.tox|venv|build|dist|\.venv|projects|migrations)/
| (^|/)(bases/)?rsptx/interactives/
| (^|/)(bases/)?rsptx/dash_server_api/
| (^|/)node_modules/
)
'''
# Also exclude these paths when files/directories are passed explicitly.
force-exclude = '''
(
(^|/)(\.claude|\.git|\.mypy_cache|\.pytest_cache|\.tox|venv|build|dist|\.venv|projects|migrations)/
| (^|/)(bases/)?rsptx/interactives/
| (^|/)(bases/)?rsptx/dash_server_api/
| (^|/)node_modules/
)
'''