-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
138 lines (123 loc) · 3.6 KB
/
pyproject.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
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
[tool.poetry]
authors = [
"Rob Ewers <[email protected]>",
"David Orme <[email protected]>",
"Jacob Cook <[email protected]>",
"Vivienne Groner <[email protected]>",
"Taran Rallings <[email protected]>",
"Olivia Daniel <[email protected]>",
"Jaideep Joshi <[email protected]>",
"Anna Rallings <[email protected]>",
"Priyanga Amarasekare <[email protected]>",
"Diego Alonso Alvarez <[email protected]>",
"Alex Dewar <[email protected]>",
]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Topic :: Scientific/Engineering",
]
description = """An holistic ecosystem simulation model."""
homepage = "https://virtual-ecosystem.readthedocs.io/"
license = "BSD-3-Clause"
name = "virtual_ecosystem"
readme = "README.md"
repository = "https://github.com/ImperialCollegeLondon/virtual_ecosystem"
version = "0.1.1a6"
[tool.poetry.scripts]
ve_run = "virtual_ecosystem.entry_points:ve_run_cli"
[tool.poetry.dependencies]
Shapely = "^2.0"
dask = ">=2023.6,<2025.0"
dpath = "^2.0.6"
jsonschema = "^4.14.0"
netcdf4 = "^1.6.5"
numpy = "^2.0"
pint = "^0.24.1"
python = ">=3.10,<3.13"
scipy = "^1.9.0"
tomli = {version = "^2.0.1", python = "<3.11"}
tomli-w = "^1.0.0"
tqdm = "^4.66.2"
xarray = "^2024.06.0"
[tool.poetry.group.types.dependencies]
types-dataclasses = "^0.6.6"
types-jsonschema = "^4.16.1"
types-tqdm = "^4.66.0.20240106"
[tool.poetry.group.test.dependencies]
hypothesis = "^6.54.2"
pytest = ">=7.1.2,<9.0.0"
pytest-cov = ">=3,<7"
pytest-datadir = "^1.4.1"
pytest-mock = "^3.8.1"
[tool.poetry.group.devenv.dependencies]
ipykernel = "^6.15.0"
ipython = "^8.4.0"
isort = "^5.12.0"
jupyterlab = "^4.2.3"
jupyterlab-myst = "^2.4.2"
jupytext = "^1.16.2"
matplotlib = "^3.5.2"
mdformat = "^0.7.14"
mdformat_frontmatter = ">=0.4.1,<2.1.0"
mdformat_tables = ">=0.4.1,<1.1.0"
mypy = "^1.5.1"
pre-commit = ">=3,<5"
[tool.poetry.group.docs.dependencies]
autodocsumm = "^0.2.8"
myst-nb = "^1.0.0"
pydocstyle = "^6.1.1"
sphinx = "^7.0.0"
sphinx-design = "^0.6.0"
sphinx-external-toc = "^1.0.0"
sphinx-rtd-theme = ">=2,<4"
sphinxcontrib-bibtex = "^2.6.1"
sphinxcontrib-mermaid = ">=0.9.2,<1.1.0"
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.2.0"]
[tool.pytest.ini_options]
addopts = """
-v
-p no:warnings
--cov=virtual_ecosystem
--cov-report=html:htmlcov/coverage
--doctest-modules --ignore=virtual_ecosystem/__main__.py
--import-mode importlib
"""
python_files = 'test_*.py'
testpaths = ['tests']
[tool.ruff]
target-version = "py310"
[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__" # "F401", # module imported but unused
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"test/test_*.py" = ["D103"]
[tool.mypy]
ignore_missing_imports = true
plugins = "numpy.typing.mypy_plugin"
[tool.jupytext]
# Stop jupytext from removing mystnb and other settings in MyST Notebook YAML headers
notebook_metadata_filter = "settings,mystnb,language_info"
# Also stop it from stripping cell metadata.
cell_metadata_filter = "all,-trusted"