-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
161 lines (145 loc) · 4.19 KB
/
Copy pathpyproject.toml
File metadata and controls
161 lines (145 loc) · 4.19 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
[build-system]
requires = ["hatchling", 'hatch-vcs']
build-backend = "hatchling.build"
[project]
name = 'echosms'
import-names = ["echosms"]
license = "MIT"
license-files = ["LICENSE",]
keywords = ["acoustic", "backscatter", "model"]
authors = [
{ name="Mike Jech"},
{ name="Gavin Macaulay"}
]
description = 'Acoustic backscattering models used in aquatic ecosystem research'
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"numpy>=2.2.0",
"scipy>=1.15.0",
"pandas>=2.3.0",
"xarray>=2024.10.0",
'trimesh',
'pymeshlab',
"shapely",
"mapbox_earcut",
'spheroidalwavefunctions',
'tqdm',
'mapply',
"requests",
"rtoml",
"urllib3",
"matplotlib>=3.10.0",
"rich",
"jsonschema-rs",
"orjson",
"manifold3d",
]
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Science/Research',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Programming Language :: Python :: 3.14',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Physics',
'Topic :: Scientific/Engineering :: Oceanography',
'Natural Language :: English',
]
dynamic = [ 'version']
[project.scripts]
echosms-view = "echosms.viewer.app:main"
validate-toml = "echosms.datastore.validate_toml:main"
process-for-datastore = "echosms.datastore.process_for_datastore:main"
[project.urls]
Homepage = 'https://github.com/ices-tools-dev/echoSMs'
Issues = 'https://github.com/ices-tools-dev/echoSMs/issues'
Documentation = 'https://ices-tools-dev.github.io/echoSMs'
Repository = 'https://github.com/ices-tools-dev/echoSMs'
[dependency-groups]
dev = [
"json-schema-for-humans>=1.5.1",
"mkdocs>=1.6.1, <2",
"mkdocs-glightbox>=0.5.2",
"mkdocs-macros-plugin>=1.5.0",
"mkdocs-material>=9.7.6, <10",
"mkdocstrings-python>=2.0.3",
"pre-commit>=4.6.0",
"pytest>=9.0.3",
"pytest-cov>=7.1.0",
"pytest-xdist>=3.8.0",
"ruff>=0.15.22",
"spyder-kernels>=3.1.4",
"zensical>=0.0.38",
]
[tool.hatch.version]
source = 'vcs'
[tool.hatch.build.targets.wheel]
packages = ["src/echosms"]
[tool.hatch.version.raw-options]
local_scheme = "no-local-version" # otherwise the non-tagged version is not accepted by testpypi
[tool.uv]
exclude-newer = "7 days"
exclude-newer-package = { zensical = "1 day" }
audit = {'malware-check' = true}
preview-features = ["audit-command", "malware-check"] # silences the preview features warnings
[tool.pytest.ini_options]
testpaths = ['tests',]
addopts = ["--import-mode=importlib", "--cov=echosms", "--cov-report=html", "--cov-report=term"]
markers = [
"internet: tests that require internet access (mostly to the echoSMs datastore)",
]
[tool.coverage.run]
omit = ["src/echosms/viewer/*.py",]
[tool.coverage.report]
show_missing = true
[tool.coverage.html]
directory = "coverage_report"
[tool.ruff]
line-length = 100
extend-exclude = ["src/otherCode"]
[tool.ruff.lint]
select = ["E", "W", "F", "S", "D"] # also D, UP, B, C90, I, N, or ALL
# select = ['ALL']
ignore = [
"D103", # missing docstring in public function
"D100", # missing docstring in public module
"D102", # missing docstring in public method
"D101", # missing docstring in public class
"D104", # missing docstring in public package
"D107", # missing docstring in __init__
"D203", # blank line before class
"D213", # mulitline summary second line
"Q000", # single quotes found but double quotes preferred
"COM812", # trailing comma missing
# These are temporary ignores when select = ["ALL"]
"EM102",
"FBT001",
"FBT002",
"ANN001",
"ANN201",
"PLC0415",
"PT011",
"I001",
"N806",
"N802",
"T201",
"CPY001",
"INP001",
"EM101",
"TRY003",
"ERA001",
"PLR0912", # too many branches
"C901", # too complex
"PLR0917", # too many positional arguments
"PLR0913", # too many arguments in function definition
"PLR0915", # too many statements
]
extend-select = [
"B006", # do not use mutable structures for argument defaults
]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["S101"] # disables assert warnings in testing