Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
159 lines (145 loc) · 3.73 KB
/
Copy pathpyproject.toml
File metadata and controls
159 lines (145 loc) · 3.73 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
[build-system]
requires = [
"setuptools >= 64.0.0",
"setuptools_scm[toml] >= 8.0",
"wheel >= 0.29.0",
]
build-backend = 'setuptools.build_meta'
[project]
name = "echopop"
dynamic = ["version"]
description = "A tool to generate biological estimates from acoustic data collected from echosounders"
readme = "README.md"
license = {text = "Apache License, Version 2.0"}
authors = [
{name = "Brandyn Lucca", email = "brandyn.lucca@gmail.com"}
]
maintainers = [
{name = "Wu-Jung Lee", email = "leewujung@gmail.com"}
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering"
]
requires-python = ">=3.12, <3.15"
dependencies = [
# Data processing and wrangling stack
"awkward",
"lmfit",
"numpy",
"openpyxl",
"pandas",
"scipy",
"numba>=0.63.0b1",
"xarray>=2026.01.0",
# Spatial data processing stack
"cartopy",
"geopandas",
"geopy",
"pyproj",
"shapely",
"verde",
# Validation stack
"pandera>=0.25",
"pydantic>=2.0.0",
"traitlets",
# Data stack
"pyarrow",
# Jupyter stack
"ipympl",
"jupyter_bokeh>=3.0.5",
# Static visualization stack
"matplotlib",
"seaborn",
# Interactive visualization stack
"bokeh<3.10",
"geoviews>=1.15.1",
"holoviews>=1.23.2",
"hvplot>=0.12.2",
"ipywidgets"
]
[project.optional-dependencies]
dev = [
"black",
"coverage",
"isort",
"pre-commit",
"pytest",
"ruff",
]
docs = [
"docutils>=0.18,<0.22",
"jupyter-book==1.0.4.post1",
"numpydoc",
"setuptools",
"sphinx-automodapi",
"sphinxcontrib-bibtex",
"sphinx-tippy",
"sphinx-togglebutton",
]
[project.urls]
Homepage = "https://github.com/echostack-org/echopop"
[tool.setuptools.packages.find]
where = ["."]
include = ["echopop*"]
[tool.setuptools_scm]
version_scheme = "post-release"
local_scheme = "no-local-version"
fallback_version = "0.0.0"
write_to = "echopop/_version.py"
write_to_template = 'version = "{version}" # noqa'
# --- Ruff configuration ---
[tool.ruff]
line-length = 100
target-version = "py312"
extend-exclude = [
"echopop/workflow_examples",
"*.ipynb"
]
[tool.ruff.lint]
# E/F = pycodestyle/pyflakes basics, I = import sorting, D = docstrings
select = ["E", "F", "I", "D", "UP", "B"]
ignore = [
"D100", # Missing docstring in public module
"D104", # Missing docstring in public package
"D203", # conflict: 1 blank line before class (D211 preferred)
"D213", # conflict: multi-line summary second line (D212 preferred)
]
[tool.ruff.lint.per-file-ignores]
# Ignore ALL docstring rules in the tests directory and all its subfolders
"echopop/tests/**" = ["D"]
# External tests
"tests/**" = ["D"]
# Ignore ALL docstring rules in the docs directory and all its subfolders
"docs/**" = ["D"]
# Ignore for workflows
"echopop/workflow_examples/**" = ["D", "B"]
# To specifically hit those __init__.py files in core:
"echopop/core/__init__.py" = ["D104"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.isort]
known-first-party = ["echopop"]
combine-as-imports = true
# --- Other precommit tools ---
[tool.codespell]
skip = "*.ipynb"
ignore-words-list = "notin,burnin"
[tool.black]
line-length = 100
target-version = ["py312"]
[tool.isort]
known_first_party = "echopop"
known_third_party = ["_echopop_version", "setuptools"]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
combine_as_imports = true
line_length = 100