-
Notifications
You must be signed in to change notification settings - Fork 15
/
pyproject.toml
166 lines (154 loc) · 3.85 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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
[tool.poetry]
name = "thalassa"
version = "0.4.5"
description = "A library for visualizing large scale results of hydrodynamic simulations"
authors = ["Panos Mavrogiorgos <[email protected]>"]
license = 'EUPL-1.2'
readme = "README.md"
repository = "https://github.com/ec-jrc/thalassa.git"
classifiers = [
"Operating System :: OS Independent",
"Development Status :: 4 - Beta",
"Environment :: Other Environment",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: GIS",
"Topic :: Scientific/Engineering :: Visualization",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
[tool.poetry.dependencies]
python = ">=3.9, <4.0"
bokeh = ">=3"
Cartopy = "*"
dask = {version = "*", extras = ["array", "dataframe", "diagnostics", "distributed", "complete"]}
datashader = "*"
geopandas = "*"
geoviews = ">=1.10"
holoviews = "*, !=1.18.2" # https://github.com/holoviz/holoviews/issues/6101
numba = ">0.52"
numpy = "*"
numpy-indexed = "*"
pandas = "*"
panel = "*, !=1.4.3" # https://github.com/holoviz/panel/issues/6865
pyproj = "*"
scipy = "*"
shapely = "*"
xarray = {version = "*", extras = ["io", "accel"]}
[tool.poetry.group.dev.dependencies]
covdefaults = "*"
ipykernel = "*"
ipython = "*"
mypy = ">=1"
nbmake = "*"
pandas-stubs = "*"
pytest = "*"
pytest-cov = ">=3.0"
pytest-xdist = "*"
types-decorator = "*"
xarray-selafin = "*"
[tool.poetry.group.docs.dependencies]
mkdocs = "*"
mkdocs-material = "*"
mkdocstrings = "*"
mkdocstrings-python = "*"
pymdown-extensions = "*"
black = "*"
[tool.poetry-dynamic-versioning]
enable = true
dirty = false
[build-system]
requires = [
"poetry-core>=1.0.0",
"poetry-dynamic-versioning",
]
build-backend = "poetry_dynamic_versioning.backend"
[tool.black]
line-length = 108
target-version = ['py39']
[tool.pytest.ini_options]
addopts = "-ra --verbose --showlocals --tb=short"
testpaths = ["tests"]
log_cli = true
filterwarnings = [
'ignore:distutils Version classes are deprecated. Use packaging.version instead:DeprecationWarning',
'ignore:Deprecated call to `pkg_resources.declare_namespace:DeprecationWarning',
]
[tool.mypy]
python_version = "3.9"
plugins = [
"numpy.typing.mypy_plugin"
]
show_column_numbers = true
show_error_context = true
warn_no_return = true
warn_redundant_casts = true
warn_return_any = true
strict = true
ignore_missing_imports = true
disable_error_code = [ ]
enable_error_code = [
"comparison-overlap",
"explicit-override",
"ignore-without-code",
"no-any-return",
"no-any-unimported",
"no-untyped-call",
"no-untyped-def",
"possibly-undefined",
"redundant-cast",
"redundant-expr",
"redundant-self",
"truthy-bool",
"truthy-iterable",
"type-arg",
"unimported-reveal",
"unreachable",
"unused-ignore",
]
# mypy per-module options:
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = true
[tool.ruff]
target-version = "py39"
line-length = 108
select = [
"E", # pycodestyle
"F", # pyflakes
"C90", # mccabe
"A", # flake8-builtins
"COM", # flake8-commas
# "UP", # pyupgrade
# "YTT", # flake-2020
# "S", # floke8-bandit
# "BLE", # flake8-blind-except
# "B", # flake8-bugbear
# "T20", # flake8-print
# "PD", # pandas-vet
# "NPY", # numpy-specific rules
# "RUF", # ruff-specific rules
# "D", # pydocstyle
# "I", # isort
# "N", # pep8-naming
]
ignore = [
"E501", # line-too-long
"D103", # undocumented-public-function
"PD901", # pandas-df-variable-name
]
[tool.coverage.run]
plugins = ["covdefaults"]
source = ["thalassa"]
omit = []
concurrency = [
"multiprocessing",
"thread",
]
parallel = true
sigterm = true
[tool.coverage.report]
fail_under = 78