-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
174 lines (159 loc) · 4.22 KB
/
pyproject.toml
File metadata and controls
174 lines (159 loc) · 4.22 KB
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
167
168
169
170
171
172
173
174
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "meshiphi"
description = "MeshiPhi: Earth's digital twin mapped on a non-uniform mesh"
authors = [
{name = "Autonomous Marine Operations Planning (AMOP) Team, AI Lab, British Antarctic Survey", email = "amop@bas.ac.uk"}
]
readme = "README.md"
license = {file = "LICENSE"}
requires-python = ">= 3.8"
classifiers = [
"Intended Audience :: Science/Research",
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: GIS",
]
keywords= ["Polar Science", "Geospatial", "Marine Science"]
dynamic = ["version"]
dependencies = [
"dask",
"geopandas",
"jsonschema",
"matplotlib",
"netcdf4",
"numpy>=1.21.6",
"pandas>=1.3.5",
"rioxarray",
"shapely>=2.0.1",
"scikit-learn",
"scipy",
"tqdm",
"xarray",
"cartopy",
"rasterio"
]
[dependency-groups]
docs = [
"mkdocs",
"mkdocs-autoapi",
"mkdocs-include-markdown-plugin",
"mkdocstrings[python]",
"mkdocs-material",
]
test = [
"pytest",
"pytest-xdist",
"pytest-cov",
"pytest-mock"
]
dev = [
"pre-commit",
"ruff",
"mypy",
"types-requests",
"pytest",
"pytest-xdist",
"pytest-cov",
"pytest-mock",
"build",
"twine"
]
[tool.setuptools]
packages = {find = {where = ["."], include = ["meshiphi*"]}}
[tool.setuptools.dynamic]
version = {attr = "meshiphi.__version__"}
[project.urls]
Homepage = "https://www.bas.ac.uk/project/autonomous-marine-operations-planning"
Documentation = "https://bas-amop.github.io/MeshiPhi"
Repository = "https://github.com/bas-amop/MeshiPhi"
Issues = "https://github.com/bas-amop/MeshiPhi/issues"
[project.scripts]
create_mesh = "meshiphi.cli:create_mesh_cli"
export_mesh = "meshiphi.cli:export_mesh_cli"
rebuild_mesh = "meshiphi.cli:rebuild_mesh_cli"
merge_mesh = "meshiphi.cli:merge_mesh_cli"
meshiphi_test = "meshiphi.cli:meshiphi_test_cli"
[tool.pytest.ini_options]
testpaths = ["tests/unit_tests", "tests/regression_tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
log_cli = true
log_format = "[%(asctime)s] %(levelname)s : %(message)s"
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
]
addopts = [
"--cov=meshiphi",
"--cov-report=term-missing",
"--cov-report=xml",
"--strict-markers",
]
[tool.coverage.run]
source = ["meshiphi"]
omit = [
"*/tests/*",
"*/test_*",
"*/__pycache__/*",
"*/__init__.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"@abstractmethod",
]
[tool.ruff]
target-version = "py38"
line-length = 100
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"ARG", # flake8-unused-arguments
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"PIE", # flake8-pie
"PT", # flake8-pytest-style
"RET", # flake8-return
"RUF", # Ruff-specific rules
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # do not perform function calls in argument defaults
"C901", # too complex
"PLR0913", # too many arguments
"PLR2004", # magic value used in comparison
]
[tool.ruff.lint.isort]
known-first-party = ["meshiphi"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"] # unused imports
"tests/*" = ["ARG", "S101"] # allow unused arguments and assert in tests
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"