-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
152 lines (136 loc) · 3.33 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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "motrainer"
version = "0.1.7"
requires-python = ">=3.10"
dependencies = [
"dask[complete]",
"ipykernel",
"numpy",
"pandas",
"scikit-learn<=1.4.2",
"scikit-optimize",
"scipy",
"tensorflow",
"xarray",
"zarr",
]
description = "Parallel Training Measurement Operators (MO) for Data Assimilation (DA) Applications"
readme = "README.md"
license = {file = "LICENSE"}
authors = [
{name = "Ou Ku", email = "[email protected]"},
{name = "Fakhereh Sarah Alidoost"},
{name = "Pranav Chandramouli"},
{name = "Francesco Nattino"},
{name = "Meiert Willem Grootes"},
{name = "Xu Shan"},
{name = "Sonja Georgievska"},
{name = "Susan Steele-Dunne"},
]
keywords = ["machine learning", "earth observation", "data assimilations", "training", "sensor"]
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
]
[project.urls]
repository = "https://github.com/VegeWaterDynamics/motrainer"
doi = "https://zenodo.org/doi/10.5281/zenodo.7540442"
documentation = "https://VegeWaterDynamics.github.io/motrainer/"
changelog = "https://VegeWaterDynamics.github.io/motrainer/CHANGELOG/"
[project.optional-dependencies]
dev = [
"pytest",
"pytest-cov",
"pycodestyle",
"ruff",
]
docs = [
"mkdocs",
"mkdocs-material",
"mkdocs-jupyter",
"mkdocstrings[python]",
"mkdocs-gen-files",
]
demo = [
"jupyterlab",
"matplotlib",
"dask-ml",
"dask-labextension",
]
[tool.setuptools]
packages = ["motrainer"]
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "--cov --cov-report term"
testpaths = [
"tests",
]
[tool.coverage.run]
branch = true
source = ["motrainer"]
[tool.ruff]
lint.select = [
"E", # pycodestyle
"F", # pyflakes
"B", # flake8-bugbear
"D", # pydocstyle
"I", # isort
"N", # PEP8-naming
"UP", # pyupgrade (upgrade syntax to current syntax)
"PLE", # Pylint error https://github.com/charliermarsh/ruff#error-ple
]
lint.ignore = [
"D100", "D101", "D104", "D105", "D106", "D107", "D203", "D213", "D413"
] # docstring style
# Allow fix for all enabled rules (when `--fix`) is provided.
lint.fixable = ["ALL"]
lint.unfixable = []
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
"docs",
"exploration",
"site",
]
line-length = 88
indent-width = 4
# Allow unused variables when underscore-prefixed.
lint.dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
target-version = "py310"
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["D"]
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"