-
Notifications
You must be signed in to change notification settings - Fork 0
/
pixi.toml
86 lines (80 loc) · 2.76 KB
/
pixi.toml
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
[project]
name = "Ribasim-NL"
version = "0.1.0"
description = "Ribasim water resources modeling in the Netherlands"
channels = ["conda-forge"]
platforms = ["win-64", "linux-64", "osx-64"]
readme = "README.md"
license = "MIT"
license-file = "LICENSE"
[tasks]
# Installation
install = "pre-commit install"
# Docs
quartodoc-build = { cmd = "quartodoc build && rm objects.json", cwd = "docs" }
quarto-preview = { cmd = "export QUARTO_PYTHON=python && quarto preview docs", depends_on = [
"quartodoc-build",
] }
quarto-check = { cmd = "quarto check all", depends_on = ["quartodoc-build"] }
quarto-render = { cmd = "export QUARTO_PYTHON=python && quarto render docs --to html --execute", depends_on = [
"quartodoc-build",
] }
docs = { depends_on = ["build-julia-docs", "quarto-preview"] }
# Lint
mypy-hydamo = "mypy --ignore-missing-imports src/hydamo"
pre-commit = "pre-commit run --all-files"
lint = { depends_on = ["pre-commit", "mypy-hydamo"] }
# Test
test-hydamo = "pytest --numprocesses=auto --basetemp=src/hydamo/tests/temp src/hydamo/tests"
test-ribasim_nl = "pytest --numprocesses=auto --basetemp=src/ribasim_nl/tests/temp src/ribasim_nl/tests"
test-peilbeheerst_model = "pytest --numprocesses=auto --basetemp=src/peilbeheerst_model/tests/temp src/peilbeheerst_model/tests"
test-hydamo-cov = "pytest --numprocesses=auto --cov=hydamo --cov-report=xml --cov-report=term-missing src/hydamo/tests"
test-ribasim_nl-cov = "pytest --numprocesses=auto --cov=ribasim_nl --cov-report=xml --cov-report=term-missing src/ribasim_nl/tests"
test-peilbeheerst_model-cov = "pytest --numprocesses=auto --cov=peilbeheerst_model --cov-report=xml --cov-report=term-missing src/peilbeheerst_model/tests"
tests = { depends_on = ["lint", "test-hydamo", "test-ribasim_nl"] }
[feature.common.dependencies]
bokeh = ">=3.0"
contextily = "*"
fiona = "*"
geocube = "*"
geopandas = "*"
ipykernel = "*"
jupyterlab = "*"
matplotlib = "*"
mypy = "*"
openpyxl = "*"
pandas = "*"
pandas-stubs = "*"
pandera = "*"
pip = "*"
pre-commit = "*"
pyarrow = "*"
pydantic = ">=2"
pyogrio = "*"
pytest = "*"
pytest-cov = "*"
pytest-xdist = "*"
python = ">=3.9"
quarto = "*"
quartodoc = "*"
rasterstats = "*"
requests = "*"
ruff = "*"
shapely = ">=2"
tomli = "*"
tomli-w = "*"
types-requests = "*"
xlwings = "*"
xugrid = "*"
[feature.common.pypi-dependencies]
bokeh_helpers = { path = "src/bokeh_helpers", editable = true }
hydamo = { path = "src/hydamo", editable = true }
peilbeheerst_model = { path = "src/peilbeheerst_model", editable = true }
ribasim_nl = { path = "src/ribasim_nl", editable = true }
[feature.dev.pypi-dependencies]
ribasim = { path = "../Ribasim/python/ribasim", editable = true }
[feature.prod.dependencies]
ribasim = "==2024.11.0"
[environments]
default = { features = ["common", "prod"] }
dev = { features = ["common", "dev"] }