-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpixi.toml
More file actions
88 lines (75 loc) · 2.23 KB
/
Copy pathpixi.toml
File metadata and controls
88 lines (75 loc) · 2.23 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
[workspace]
name = "r-ywidgets"
description = "Reactive widgets backed by Yr CRDTs (R port of ypywidgets)"
channels = ["conda-forge"]
platforms = ["osx-arm64", "osx-64", "linux-64", "win-64"]
[environments]
dev = { features = ["test", "dev", "ui-tests"], solve-group = "default" }
# Runtime dependencies — present in every environment.
[dependencies]
r-base = ">=4.1"
r-yr = ">=0.1.4"
xeus-r = ">=0.11.0" # hera
r-r6 = "*"
[feature.test.dependencies]
r-testthat = ">=3.0.0"
yjs-widgets = "*"
[feature.test.tasks]
description = "Run r-ywidgets unit tests"
test = "Rscript -e 'testthat::test_local()'"
[feature.dev.dependencies]
r-devtools = "*"
r-roxygen2 = "==8.0.0"
air = "*"
typos = "*"
biome = ">=2.3"
pre-commit = "*"
jupyterlab = ">=4"
jupyterlab-kernelspy = "*"
yjs-widgets = "*"
yjs-widgets-collection = "*"
[feature.dev.tasks.install-ywidgets]
cmd = "R CMD INSTALL ."
[feature.dev.tasks.jupyter]
cmd = "jupyter"
env = { R_PROFILE_USER = "$PIXI_PROJECT_ROOT/dev/.Rprofile" }
[feature.dev.tasks.test-example]
cmd = """
jupyter nbconvert \
--to notebook \
--execute \
--ExecutePreprocessor.store_widget_state=False \
examples/widgets.ipynb
"""
env = { R_PROFILE_USER = "$PIXI_PROJECT_ROOT/dev/.Rprofile" }
[feature.dev.tasks]
# Document
doc = "rm -rf man/ && Rscript -e 'devtools::document()'"
# Formatters
fmt-air = "air format R/ tests/"
fmt-tombi = "tombi format"
fmt-biome = "biome format --write"
fmt = { depends-on = ["fmt-air", "fmt-biome", "fmt-tombi"] }
# Checkers
check-r = "Rscript -e 'devtools::check()'" # Not ready
check-typos = "typos --write-changes"
check = { depends-on = ["check-typos"] }
# Pre-commit easy alias
pre-commit = "pre-commit"
pre-commit-all = "pre-commit run --all-files"
[feature.ui-tests.dependencies]
nodejs = "26.*"
[feature.ui-tests.tasks.install-ui-tests-deps]
cwd = "ui-tests"
cmd = "npm ci"
description = "Install Playwright and Galata"
[feature.ui-tests.tasks.install-browsers]
cwd = "ui-tests"
cmd = "npx playwright install"
description = "Install web browsers through playwright."
depends-on = ["install-ui-tests-deps"]
[feature.ui-tests.tasks.test-ui]
cwd = "ui-tests"
cmd = "npx --no playwright test"
description = "Run Galata/Playwright UI tests."
env = { R_PROFILE_USER = "$PIXI_PROJECT_ROOT/dev/.Rprofile" }