-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
106 lines (98 loc) · 2.65 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
[build-system]
requires = ["hatchling>=1.8.0", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.version]
path = "src/excited_workflow/__init__.py"
[project]
name = "excited-workflow"
description = " A Machine Learning workflow to produce a dataset of global net ecosystem CO2 exchange fluxes."
readme = "README.md"
license = "Apache-2.0"
requires-python = ">=3.10, <3.12"
authors = [
{email = "b.schilperoort@esciencecenter.nl"},
{name = "Bart Schilperoort, Yang Liu, Claire Donnelly"}
]
maintainers = [
{name = "Bart Schilperoort", email = "b.schilperoort@esciencecenter.nl"},
{name = "Yang Liu", email = "y.liu@esciencecenter.nl"},
{name = "Claire Donnelly", email = "c.donnelly@esciencecenter.nl"}
]
keywords = [
"machine learning",
"co2 exchange",
"NEE",
"GPP",
]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
dependencies = [
"scikit-learn==1.2.2",
"lightgbm==3.3.5",
"pandas",
"openpyxl", # Excel file compatibility.
"xarray",
"dask[distributed]",
"bokeh<3",
"netcdf4",
"matplotlib",
"pyyaml",
"timezonefinder",
"skl2onnx",
"onnxruntime",
"onnxmltools",
"flox", # Makes xarray groupby (and resample) faster.
"bottleneck", # required for some xarray functionality.
"xarray-regrid",
"pycaret",
]
dynamic = ["version"]
[project.optional-dependencies]
dev = [
"ruff",
"mypy",
"types-PyYAML",
]
docs = [
"mkdocs",
"mkdocs-material",
"mkdocs-gen-files",
"mkdocs-jupyter",
]
[tool.ruff]
select = ["E", "F", "B", "D", "C90", "I", "N", "UP", "PLE", "PLR", "PLW"]
extend-select = ["D401", "D400", "D404", "TID252"]
ignore = ["PLR2004", "PLR0913", "N813", "N803"]
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
target-version = "py310"
line-length = 88
exclude = ["docs", "build"]
[tool.ruff.per-file-ignores]
"tests/**" = ["D"]
[tool.ruff.pydocstyle]
convention = "google"
[tool.ruff.isort]
known-first-party = ["excited_workflow"]
force-single-line = true
lines-after-imports = 2
[tool.mypy]
python_version = "3.10"
plugins = "numpy.typing.mypy_plugin"
disallow_untyped_defs = true
disallow_any_unimported = false
no_implicit_optional = true
check_untyped_defs = true
warn_return_any = true
warn_unused_ignores = true
show_error_codes = true
ignore_missing_imports = true