-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathpyproject.toml
107 lines (99 loc) · 2.21 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
[build-system]
requires = ["setuptools>=61"]
build-backend = "setuptools.build_meta"
[project]
name = "deepsensor"
version = "0.4.2"
authors = [
{name = "Tom R. Andersson", email="[email protected]"},
]
description = "A Python package for modelling xarray and pandas data with neural processes."
readme = "README.md"
license = {text="MIT"}
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent"
]
requires-python = ">=3.8"
dependencies = [
"backends",
"backends-matrix",
"dask",
"distributed",
"gcsfs",
"matplotlib",
"neuralprocesses>=0.2.7",
"numpy",
"pandas",
"pooch",
"pyshp",
"seaborn",
"tqdm",
"xarray",
"zarr"
]
[tool.setuptools]
packages = ["deepsensor"]
[project.urls]
Source = "https://github.com/alan-turing-institute/deepsensor"
Bug_Tracker = "https://github.com/alan-turing-institute/deepsensor/issues"
[project.optional-dependencies]
torch = ["torch>=2"]
tf = ["tensorflow", "tensorflow_probability[tf]"]
dev = [
"coveralls",
"parameterized",
"pre-commit",
"pytest",
"ruff",
]
docs = [
"jupyter-book",
"matplotlib",
"numpy",
]
testing = [
"mypy",
"parameterized",
"pytest",
"pytest-cov",
"tox",
]
rioxarray = [
"rioxarray"
]
[tool.setuptools.package-data]
deepsensor = ["py.typed"]
[tool.pytest.ini_options]
addopts = "--cov=deepsensor"
testpaths = [
"tests",
]
[tool.mypy]
mypy_path = "deepsensor"
check_untyped_defs = true
disallow_any_generics = true
ignore_missing_imports = true
no_implicit_optional = true
show_error_codes = true
strict_equality = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
warn_unused_configs = true
no_implicit_reexport = true
[tool.ruff]
exclude = ["tests", "docs", "*.ipynb"]
lint.select = [
"D",
"NPY201"
]
lint.ignore = [
"D100", # Missing docstring in public module
"D104", # Missing docstring in public package
"D105", # Missing docstring in magic method
"D107", # Missing docstring in __init__
"D205", # 1 blank line required between summary line and description
"D417", # Missing argument description in function docstring
]
lint.pydocstyle.convention = "google"