-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpixi.toml
More file actions
99 lines (87 loc) · 2.76 KB
/
pixi.toml
File metadata and controls
99 lines (87 loc) · 2.76 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
[workspace]
name = "mf6adj"
channels = ["conda-forge"]
platforms = ["win-64", "linux-64", "linux-aarch64", "osx-arm64", "osx-64"]
version = "1.0.0"
[dependencies]
appdirs = "*"
codespell = ">=2.2.2"
contextily = "*"
coverage = "*"
filelock = "*"
flaky = "*"
flopy = ">=3.10.0"
h5py = ">=3.0.0"
ipykernel = "*"
jupyter = "*"
jupyter_client = ">=8.4.0"
pandoc = "*"
matplotlib = ">=3.5.0"
modflowapi = ">=0.2.0"
nbmake = "*"
numpy = ">=2.0"
pandas = ">=2.0.0"
pyemu = ">=1.4.0"
geopandas = ">=1.0.0"
boltons = "*"
tomli-w = "*"
modflow-devtools = ">=1.9.1"
pyshp = "*"
pytest = ">=9.0.2"
pytest-cov = "*"
pytest-dotenv = "*"
pytest-order = "*"
pytest-xdist = "*"
python = "3.10.*"
requests = "*"
scipy = ">=1.7.0"
shapely = "*"
# pre-commit tools
pre-commit = "*"
nbstripout = "*"
ruff = "*"
jupyterlab_code_formatter = "*"
# docs
myst-parser = "*"
nbconvert = "*"
nbsphinx = "*"
pyyaml = "*"
sphinx = ">=7.1.2"
sphinx-rtd-theme = ">=1"
# docs/build tools (PyPI-only)
[pypi-dependencies]
hatchling = ">=1.27.0,<2"
hatch-fancy-pypi-readme = "*"
rtds-action = "*"
[tasks]
pre-commit-install = { cmd = "pre-commit install" }
postinstall = "pip install --no-deps --disable-pip-version-check -e ."
# jupyter
jupyter = { cmd = "jupyter lab" }
# flopy
update-flopy = { cmd = "python -m flopy.mf6.utils.generate_classes --ref develop" }
# format
format = { cmd = "pre-commit run --all-files" }
format-all = { cmd = "pixi run clean-notebooks; pre-commit run --all-files" }
check-lint = "ruff check ."
check-format = "ruff format . --check"
check-spelling = "codespell"
fix-style = "ruff check . --fix; ruff format ."
# install
install-executables = { cmd = "pixi run install-modflow; pixi run install-gridgen" }
install-modflow = {cmd = "get-modflow --repo modflow6-nightly-build :python"}
install-gridgen = {cmd = "get-modflow --subset gridgen :python"}
# test
autotest = { cmd = "pixi run autotest-base; pixi run autotest-notebooks" }
autotest-base = { cmd = "pixi run clean-tests; pytest -v -n=auto --durations=0 --cov=mf6adj --cov-report=xml --keep-failed .failed", cwd = "autotest" }
autotest-notebooks = { cmd = "pytest -v -n=auto --durations=0 --nbmake --nbmake-timeout=3000", cwd = "examples" }
clean-notebooks = { cmd = "python clear_output_all.py", cwd = "examples" }
clean-tests = { cmd = "rm -rf *_test", cwd = "autotest" }
# coverage report
coverage-report = { cmd = "coverage report", cwd = "autotest"}
# docs
docs-install = { cmd = "pip install --no-deps --disable-pip-version-check -e '.[doc]'" }
docs-apidoc = { cmd = "python scripts/sphinx_apidoc.py" }
docs-build = { cmd = "pixi run docs-install; python scripts/sphinx_build.py" }
docs-build-exec = { cmd = "pixi run docs-install; python scripts/sphinx_build.py --execute" }
docs-clean = { cmd = "rm -rf docs/_build docs/source/_api docs/source/examples" }