forked from oceanmodeling/searvey
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
155 lines (140 loc) · 3.57 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
[tool.poetry]
name = "searvey"
version = "0.0.0" # overwritten by poetry-dynamic-versioning plugin
description = ""
authors = [
"Panos Mavrogiorgos <[email protected]>",
"Zachary Burnett <[email protected]>",
]
license = 'GPL-3.0-or-later'
readme = "README.md"
repository = "https://github.com/oceanmodeling/searvey.git"
classifiers = [
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Operating System :: OS Independent",
"Development Status :: 4 - Beta",
"Environment :: Other Environment",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Hydrology",
"Topic :: Scientific/Engineering :: Atmospheric Science",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
[tool.poetry.dependencies]
python = ">=3.8, <3.12"
beautifulsoup4 = "*"
dataretrieval = ">=1"
erddapy = "*"
geopandas = "*"
html5lib = "*"
limits = "*"
lxml = "*"
numpy = "*"
pandas = "*"
pydantic = "*"
requests = "*"
Shapely = "*"
tqdm = "*"
typing-extensions = "*"
xarray = "*"
[tool.poetry.group.dev.dependencies]
covdefaults = "*"
coverage = {version = "*", extras = ["toml"]}
mypy = ">=1"
pytest = "*"
pytest-cov = ">=3.0"
pytest-recording = "*"
pytest-xdist = "*"
types-requests = "*"
nbconvert = "*"
urllib3 = "<2" # https://github.com/kevin1024/vcrpy/issues/688
[tool.poetry.group.docs.dependencies]
dunamai = "*"
m2r2 = "*"
sphinx = "*"
furo = "*"
toml = "*"
sphinxext-opengraph = "^0.8.2"
[tool.poetry.group.jupyter.dependencies]
ipykernel = "*"
matplotlib = "*"
scipy = "*"
[tool.poetry-dynamic-versioning]
enable = true
dirty = true
[build-system]
requires = [
"poetry-core>=1.0.0",
"poetry-dynamic-versioning",
]
build-backend = "poetry_dynamic_versioning.backend"
[tool.black]
line-length = 108
target-version = ['py38']
[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.8"
plugins = ["pydantic.mypy"]
show_error_codes = true
show_column_numbers = true
show_error_context = true
warn_no_return = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
warn_unused_ignores = true
strict = true
ignore_missing_imports = true
# FIXME These errors get thrown by `searvey/coops.py`
# I can't find a way to disable them on a per-module basis, so we are disabling them globally.
# We should comment them out one by one, run `make mypy`, fix the errors and move on.
disable_error_code = [
"assignment",
"override",
"attr-defined",
"no-any-return",
"unreachable",
]
# mypy per-module options:
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = true
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
warn_untyped_fields = true
[tool.ruff]
target-version = "py38"
line-length = 108
select = [
"E", # pycodestyle
"F", # pyflakes
"C90", # mccabe
]
ignore = [
"E501", # line-too-long
]
[tool.coverage.run]
plugins = ["covdefaults"]
source = ["searvey"]
concurrency = [
"multiprocessing",
"thread",
]
parallel = true
sigterm = true
[tool.coverage.report]
fail_under = 89.5