forked from ec-jrc/Thalassa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
139 lines (127 loc) · 3.22 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
[tool.poetry]
name = "thalassa"
version = "0.0.0" # overwritten by poetry-dynamic-versioning plugin
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"
Cartopy = "*"
datashader = "*"
geopandas = "*"
geoviews = "*"
fiona = ">=1.8"
holoviews = "*"
numpy = "*"
pandas = "*"
shapely = "*"
xarray = {version = "*", extras = ["io", "accel"]}
[tool.poetry.group.dev.dependencies]
covdefaults = "*"
mypy = ">=1"
pytest = "*"
pytest-cov = ">=3.0"
ipykernel = "*"
ipython = "*"
nbconvert = "*"
[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_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
# 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 = 61