-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathpixi.toml
More file actions
107 lines (96 loc) · 3.02 KB
/
Copy pathpixi.toml
File metadata and controls
107 lines (96 loc) · 3.02 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
[workspace]
channels = ["conda-forge", "nodefaults"]
name = "modflow6-examples"
platforms = ["win-64", "linux-64", "linux-aarch64", "osx-arm64", "osx-64"]
version = "1.0.0"
description = "This repository contains MODFLOW 6 examples."
[tasks]
# General
script = { cmd = "pytest -v test_scripts.py -k", cwd = "autotest"} # Add script name e.g. pixi run script ex-gwe-ates.py
notebook = { cmd = "pytest -v test_notebooks.py -k", cwd = "autotest" } # Add script name e.g. pixi run notebook ex-gwe-ates.py
scripts = { cmd = "pytest -v -n auto test_scripts.py", cwd = "autotest"} # Runs all scripts
notebooks = { cmd = "pytest -v -n auto test_notebooks.py", cwd = "autotest" } # Runs all notebooks
jupytext = { cmd = "jupytext --to notebook ", cwd = "scripts" } # Add script name e.g. pixi run jupytext ex-gwe-ates.py
jupyter = { cmd = "jupyter notebook", cwd = "notebooks"}
build-input = { cmd = "pytest -v -n auto test_scripts.py --init", cwd = "autotest" }
update-environment-yml = "pixi workspace export conda-environment environment.yml"
update-flopy = "python -m flopy.mf6.utils.generate_classes"
install = "pixi update flopy mfpymake modflowapi"
# Check format
check-format = "ruff check .; ruff format . --check"
check-spelling = "codespell"
# Fix format
fix-format = { cmd = "ruff check --fix; ruff format ." }
fix-spelling = { cmd = "codespell --write-changes" }
# CommonDocs
build-plots = { cmd = "pytest -v -n auto test_notebooks.py --plot", cwd = "autotest" }
build-latex-md = { cmd = "python create-doc-tables.py", cwd ="scripts" }
build-rst = { cmd = "python ci_create_examples_rst.py", cwd = "etc" }
# ReadTheDocs
build-sphinx = { cmd = "make clean; make html", cwd = ".doc" }
make-rtd = { depends-on = [
"build-plots",
"build-latex-md",
"build-rst",
"build-sphinx",
] }
# PDF document
build-pdflatex = { cmd = "bash build-pdf.sh", cwd = "doc" }
make-pdf = { depends-on = [
"build-plots",
"build-latex-md",
"build-rst",
"build-pdflatex",
] }
[target.win-64.tasks]
build-pdflatex = { cmd = "build-pdf.bat", cwd = "doc" }
[dependencies]
python = ">=3.10"
boltons = "*"
appdirs = "*"
cffconvert = "*"
codespell = "*"
filelock = "*"
flaky = "*"
fprettify = "*"
fortran-language-server = "*"
gitpython = "*"
geopandas = "*"
jinja2 = ">=3.1.5,<4"
jupytext = "*"
matplotlib = "<=3.9.4"
meson = "1.8.0.*"
ninja = "*"
numpy = "*"
pip = "*"
pooch = "*"
pyshp = "*"
pytest = "!=8.1.0"
pytest-benchmark = "*"
pytest-dotenv = "*"
pytest-order = "*"
pytest-xdist = "*"
pyvista = "*"
rasterio = "*"
rasterstats = "*"
ruff = "*"
scipy = "*"
shapely = "*"
syrupy = "*"
tomli = ">=2.2.1,<3"
tomli-w = ">=1.2.0,<2"
[pypi-dependencies]
flopy = { git = "https://github.com/modflowpy/flopy.git" }
mfpymake = { git = "https://github.com/modflowpy/pymake.git" }
modflowapi = { git = "https://github.com/MODFLOW-ORG/modflowapi.git" }
modflow-devtools = "==1.7.0"
sphinx-markdown-tables = "*"
nbsphinx-link = "*"
rtds-action = "*"
nbconvert = "==7.16.3"
nbsphinx = "*"
ipython = "*"
ipykernel = "*"
sphinx-rtd-theme = "*"
pygments = ">=2.4.1"
myst-parser = "*"