-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
162 lines (136 loc) · 4.02 KB
/
pyproject.toml
File metadata and controls
162 lines (136 loc) · 4.02 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "aquapose"
version = "1.1.0"
description = "3D fish pose estimation via refractive multi-view triangulation"
readme = "README.md"
requires-python = ">=3.11"
license = {text = "MIT"}
authors = [{name = "Tucker Lancaster"}]
keywords = ["pose-estimation", "3d-reconstruction", "computer-vision", "pytorch", "differentiable-rendering", "fish", "behavioral-neuroscience"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Image Processing",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
"torch>=2.0",
"torchvision>=0.15",
"numpy>=1.24",
"opencv-python>=4.8",
"scipy>=1.11",
"scikit-image>=0.21",
"h5py>=3.9",
"aquacal",
"pycocotools>=2.0",
"ultralytics>=8.0",
"plotly>=5.18",
"click>=8.1",
"boxmot>=11.0",
"igraph>=0.11",
"leidenalg>=0.10",
]
[project.urls]
Homepage = "https://github.com/tlancaster6/aquapose"
Documentation = "https://aquapose.readthedocs.io"
Repository = "https://github.com/tlancaster6/aquapose"
Issues = "https://github.com/tlancaster6/aquapose/issues"
[project.scripts]
aquapose = "aquapose.cli:main"
[tool.hatch.build.targets.sdist]
exclude = [".planning/", ".claude/", ".hooks/"]
[tool.hatch.build.targets.wheel]
packages = ["src/aquapose"]
[tool.hatch.envs.default]
dependencies = [
"pytest",
"pytest-cov",
"ruff",
"pre-commit",
"basedpyright",
]
[tool.hatch.envs.default.scripts]
test = "pytest tests/ -m \"not slow\" {args}"
test-all = "pytest tests/ {args}"
lint = "ruff check src/ tests/ {args}"
format = "ruff format src/ tests/ {args}"
typecheck = "basedpyright src/ {args}"
check = ["lint", "typecheck"]
[tool.hatch.envs.docs]
dependencies = [
"sphinx>=6.2",
"furo",
"myst-parser",
"sphinx-copybutton",
"sphinx-design",
"nbsphinx>=0.9.8",
"sphinxcontrib-mermaid",
]
[tool.hatch.envs.docs.scripts]
build = "sphinx-build -W --keep-going -b html docs docs/_build/html"
[tool.hatch.envs.release]
dependencies = ["python-semantic-release", "build"]
[tool.pytest.ini_options]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"e2e: marks end-to-end tests (deselect with '-m \"not e2e\"')",
]
[tool.ruff]
line-length = 88
target-version = "py311"
exclude = [".git", ".venv", "__pycache__", "build", "dist", "*.ipynb"]
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "W", "I", "UP", "B", "SIM", "RUF", "PT"]
fixable = ["ALL"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"tests/**/*.py" = ["E501"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.basedpyright]
pythonVersion = "3.11"
typeCheckingMode = "basic"
[tool.coverage.run]
source = ["src/aquapose"]
omit = ["*/tests/*", "*/test_*.py", "*/__pycache__/*"]
[tool.coverage.report]
precision = 2
show_missing = true
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"@abstractmethod",
]
[tool.semantic_release]
version_toml = ["pyproject.toml:project.version"]
commit_message = "chore(release): {version}"
build_command = "python -m build"
tag_format = "v{version}"
[tool.semantic_release.branches.main]
match = "^main$"
prerelease = false
[tool.semantic_release.branches.dev]
match = "^dev$"
prerelease = true
prerelease_token = "dev"
[tool.semantic_release.changelog]
changelog_file = "CHANGELOG.md"
[tool.semantic_release.commit_parser_options]
allowed_tags = ["build", "chore", "ci", "docs", "feat", "fix", "perf", "refactor", "style", "test"]
minor_tags = ["feat"]
patch_tags = ["fix", "perf"]
[tool.semantic_release.remote.token]
env = "GH_TOKEN"