@@ -25,8 +25,7 @@ commands:
25
25
curl -LsSf https://astral.sh/uv/install.sh | sh
26
26
uv venv
27
27
source .venv/bin/activate
28
- uv pip install .
29
- uv pip install -r ./test_requirements/requirements_core.txt
28
+ uv sync --extra dev_core
30
29
- run :
31
30
name : List installed packages and python version
32
31
command : |
@@ -56,8 +55,7 @@ commands:
56
55
curl -LsSf https://astral.sh/uv/install.sh | sh
57
56
uv venv
58
57
source .venv/bin/activate
59
- uv pip install .
60
- uv pip install -r ./test_requirements/requirements_optional.txt
58
+ uv sync --extra dev_optional
61
59
62
60
- when :
63
61
condition :
@@ -70,8 +68,7 @@ commands:
70
68
name : Install pandas
71
69
command : |
72
70
source .venv/bin/activate
73
- uv pip install pip
74
- python -m pip install pandas==<<parameters.pandas_version>> numpy==<<parameters.numpy_version>>
71
+ uv pip install pandas==<<parameters.pandas_version>> numpy==<<parameters.numpy_version>>
75
72
76
73
- run :
77
74
name : Test core
@@ -125,8 +122,7 @@ commands:
125
122
curl -LsSf https://astral.sh/uv/install.sh | sh
126
123
uv venv
127
124
source .venv/bin/activate
128
- uv pip install .
129
- uv pip install -r ./test_requirements/requirements_optional.txt
125
+ uv pip install .[dev_optional]
130
126
# Install Kaleido v0 instead of the v1 specified in requirements_optional.txt
131
127
uv pip uninstall kaleido
132
128
uv pip install kaleido==0.2.1
@@ -151,16 +147,16 @@ jobs:
151
147
steps :
152
148
- checkout
153
149
- run :
154
- name : Install black
150
+ name : Install ruff
155
151
command : |
156
- python -m venv venv
157
- . venv/bin/activate
158
- pip install black==25.1.0
152
+ uv venv
153
+ source . venv/bin/activate
154
+ uv sync --extra dev_core
159
155
- run :
160
- name : Check formatting with black
156
+ name : Check formatting with ruff
161
157
command : |
162
- . venv/bin/activate
163
- black -- check . --exclude venv
158
+ source . venv/bin/activate
159
+ ruff check .
164
160
165
161
test_core_py :
166
162
parameters :
@@ -226,22 +222,20 @@ jobs:
226
222
curl -LsSf https://astral.sh/uv/install.sh | sh
227
223
uv venv
228
224
source .venv/bin/activate
229
- uv pip install -e .
230
- uv pip install -r test_requirements/requirements_optional.txt
225
+ uv sync --extra dev_optional
231
226
232
227
- run :
233
- name : Build html figures (Pandas 2)
228
+ name : Build HTML figures (Pandas 2)
234
229
command : |
235
230
source .venv/bin/activate
236
231
python tests/percy/plotly-express.py
237
232
- run :
238
- name : Build html figures (Pandas 1) and compare
233
+ name : Build HTML figures (Pandas 1) and compare
239
234
command : |
240
235
source .venv/bin/activate
241
236
mkdir tests/percy/pandas2
242
237
mv tests/percy/*.html tests/percy/pandas2/
243
- uv pip install pip
244
- python -m pip install pandas==1.5.3 numpy==1.26.4
238
+ uv pip install pandas==1.5.3 numpy==1.26.4
245
239
python tests/percy/plotly-express.py
246
240
python tests/percy/compare-pandas.py
247
241
rm -rf tests/percy/pandas2
@@ -273,8 +267,7 @@ jobs:
273
267
curl -LsSf https://astral.sh/uv/install.sh | sh
274
268
uv venv
275
269
source .venv/bin/activate
276
- uv pip install -e .
277
- uv pip install -r ./test_requirements/requirements_core.txt black inflect jupyterlab
270
+ uv sync --extra dev_optional
278
271
- run :
279
272
name : Update plotly.js to dev
280
273
command : |
@@ -291,7 +284,7 @@ jobs:
291
284
name : Build source distribution packages
292
285
command : |
293
286
source .venv/bin/activate
294
- uv pip install build
287
+ uv sync --extra dev_build
295
288
python -m build --sdist --wheel -o dist
296
289
when : always
297
290
- store_artifacts :
@@ -312,8 +305,7 @@ jobs:
312
305
curl -LsSf https://astral.sh/uv/install.sh | sh
313
306
uv venv
314
307
source .venv/bin/activate
315
- uv pip install build
316
- uv pip install jupyter
308
+ uv sync --extra dev_build
317
309
cd js
318
310
npm ci
319
311
npm run build
@@ -352,7 +344,7 @@ jobs:
352
344
curl -LsSf https://astral.sh/uv/install.sh | sh
353
345
uv venv
354
346
source .venv/bin/activate
355
- uv pip install -r requirements.txt
347
+ uv sync
356
348
cd ..
357
349
if [ "${CIRCLE_BRANCH}" != "doc-prod" ]; then
358
350
uv pip uninstall plotly
0 commit comments