-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
165 lines (146 loc) · 4.48 KB
/
Copy pathpyproject.toml
File metadata and controls
165 lines (146 loc) · 4.48 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
[project]
authors = [
{name = "Rob Ewers", email = "r.ewers@imperial.ac.uk"},
{name = "David Orme", email = "d.orme@imperial.ac.uk"},
{name = "Jacob Cook", email = "j.cook17@imperial.ac.uk"},
{name = "Vivienne Groner", email = "v.groner@imperial.ac.uk"},
{name = "Taran Rallings", email = "t.rallings@imperial.ac.uk"},
{name = "Sally Matson", email = "sally.matson21@imperial.ac.uk"},
{name = "Olivia Daniel", email = "olivia.daniel08@imperial.ac.uk"},
{name = "Jaideep Joshi", email = "joshi@iiasa.ac.at"},
{name = "Anna Rallings", email = "a.rallings@imperial.ac.uk"},
{name = "Priyanga Amarasekare", email = "pamarasekare@gmail.com"},
{name = "Diego Alonso Alvarez", email = "d.alonso-alvarez@imperial.ac.uk"},
{name = "Alex Dewar", email = "a.dewar@imperial.ac.uk"},
]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Topic :: Scientific/Engineering",
]
description = """An holistic ecosystem simulation model."""
license = "BSD-3-Clause"
license-files = ["LICENSE"]
name = "virtual_ecosystem"
readme = "README.md"
version = "0.2.2"
requires-python = ">=3.12"
dependencies = [
"Shapely (>2.0)",
"dask (>2023.6)",
"dpath (>2.0)",
"netcdf4 (>1.6)",
"numpy (>2.0)", # SPEC0
"openpyxl (>3.1)",
"pint (>0.24)",
"pyrealm (>=3.0.0.rc.4)",
"scipy (>=1.18.1)", # SPEC0
"tomli-w (>1.0)",
"tqdm (>4.66)",
"xarray (>=2026.7.0)", # SPEC0
"types-tabulate (>0.9)",
"pydantic (>=2.13.5,<3.0.0)",
"bottleneck (>=1.6.0,<2.0.0)",
"zarr (>=3.4.0,<4.0.0)",
]
[project.scripts]
ve_run = "virtual_ecosystem.entry_points:ve_run_cli"
[project.urls]
homepage = "https://virtual-ecosystem.readthedocs.io/"
repository = "https://github.com/ImperialCollegeLondon/virtual_ecosystem"
[tool.poetry]
requires-poetry = ">=2.0"
[tool.poetry.group.types.dependencies]
types-dataclasses = "^0.6.6"
types-jsonschema = "^4.26.0"
types-tqdm = "^4.70.0.20260827"
[tool.poetry.group.test.dependencies]
hypothesis = "^6.168.1"
pytest = ">=9.1.1,<10.0.0"
pytest-cov = ">=3,<8"
pytest-datadir = "^1.4.1"
pytest-mock = "^3.15.1"
pytest-xdist = {extras = ["psutil"], version = "^3.8.0"}
[tool.poetry.group.devenv.dependencies]
codespell = "^2.4.1"
ipykernel = "^7.3.0"
ipython = ">=9.17.1" # SPEC0
isort = ">=9.0.1,<10.0"
jupyterlab = "^4.6.4"
jupyterlab-myst = "^2.7.0"
jupytext = "^1.19.5"
matplotlib = ">=3.11.2" # SPEC0
mypy = "^2.3.1"
pre-commit = ">=4.6.2,<5"
ruff = ">=0.16.8,<0.17.0"
snakeviz = ">=2.2.2,<3.0.0"
[tool.poetry.group.docs.dependencies]
autodocsumm = "^0.2.8"
dominate = ">=2.9.1,<3.0.0"
myst-nb = ">=1.0"
pydata-sphinx-theme = ">=0.21.0,<0.22.0"
pydocstyle = "^6.1.1"
pyproj = "^3.7.2"
sphinx = "^8.0.0"
sphinx-design = "^0.7.0"
sphinx-external-toc = "^1.1.0"
sphinx-rtd-theme = ">=2,<4"
sphinxcontrib-bibtex = "^2.7.0"
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.2.0"]
[tool.pytest.ini_options]
addopts = """
-v
-p no:warnings
-m "not profiling"
-m "not integration"
-n auto
--cov=virtual_ecosystem
--cov-report=html:htmlcov/coverage
--doctest-modules --ignore=virtual_ecosystem/__main__.py
--import-mode importlib
"""
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"profiling: run profiling tests",
"integration: integration tests that should only be run to test releases",
]
python_files = 'test_*.py'
testpaths = ['tests']
[tool.ruff]
target-version = "py312"
[tool.ruff.lint]
# Enable all `pydocstyle` rules, limiting to those that adhere to the
# Google convention via `convention = "google"`, below.
select = [
# "B", # flake8-bugbear
# "SIM", # flake8-simplify
"E", # pycodestyle
"F", # pyflakes
"D", # pydocstyle
"I", # isort
"UP", # pyupgrade
"RUF", # ruff-only checking
"NPY201", # Numpy 2.0.1
]
# On top of the Google convention, disable:
ignore = [
"D202", # Blank line after docstring is ok
"D107", # Location of __init__ docstring in class not __init__"
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"test/test_*.py" = ["D103"]
[tool.mypy]
ignore_missing_imports = true
[tool.jupytext]
# Stop jupytext from removing mystnb and other settings in MyST Notebook YAML headers
notebook_metadata_filter = "settings,mystnb,language_info,execution"
# Also stop it from stripping cell metadata.
cell_metadata_filter = "all,-trusted"
[tool.codespell]
ignore-words = ".codespellignore.txt"
skip = "*.js,*.html,*.css,*.ipynb,*.bib,*.svg,poetry.lock,./docs/build"