-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpyproject_macos.toml
More file actions
261 lines (244 loc) · 5.93 KB
/
Copy pathpyproject_macos.toml
File metadata and controls
261 lines (244 loc) · 5.93 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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
[project]
name = "vaila"
version = "0.3.53"
description = "Versatile Anarcho Integrated Liberation Ánalysis - Multimodal Toolbox for Biomechanics and Motion Analysis"
readme = "README.md"
requires-python = ">=3.12,<3.13"
license = {text = "AGPL-3.0-or-later"}
authors = [
{name = "Paulo R. P. Santiago", email = "paulosantiago@usp.br"},
]
keywords = ["biomechanics", "motion-analysis", "multimodal", "imu", "mocap", "markerless"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Medical Science Apps.",
]
dependencies = [
# Core scientific computing
"numpy",
"pandas",
"scipy",
"scikit-learn",
"statsmodels",
# Visualization
"matplotlib",
"seaborn",
"plotly",
"pillow>=12.2.0",
"pycairo",
# Data processing
"dask",
"distributed",
"h5py",
"openpyxl",
"lxml",
# Jupyter and interactive computing
"ipython",
"jupyterlab",
"notebook",
"matplotlib-inline",
# Web frameworks
"flask",
"dash",
"werkzeug",
"itsdangerous",
"blinker",
# Database and data formats
"sqlalchemy",
"ezc3d",
"toml",
"pyyaml",
# Computer vision and image processing
"opencv-contrib-python",
"imageio",
"imageio-ffmpeg",
# Machine learning and AI
"jax",
"jaxlib",
"xgboost",
"mediapipe",
"torch==2.11.0",
"torchvision==0.26.0",
"torchaudio==2.11.0",
"ultralytics",
"boxmot",
"trackers==2.4.0",
"requests",
# 3D processing
"open3d",
"glfw",
# Signal processing and biomechanics
"imufusion",
"neurokit2",
"biosppy",
"entropy",
"pykalman",
"numba",
"spm1d",
# Audio processing
"librosa",
"pydub",
"sounddevice",
"soundfile",
"SpeechRecognition",
"pyttsx3",
"gtts",
"midiutil",
"mido",
# Geospatial
"gpxpy",
"simplekml",
"folium",
# Networking and remote access
"paramiko",
"scp",
# Utilities
"einops",
"absl-py",
"bcrypt",
"python-dotenv",
"pygame",
"PySide6",
"tenacity",
"retrying",
"watchdog",
"wordcloud",
"rich",
"ydata_profiling",
"xonsh[full]",
"intel-openmp; sys_platform != 'darwin' and (platform_machine == 'x86_64' or platform_machine == 'AMD64')",
"yt-dlp",
"openai",
"odfpy",
"psutil",
"pyzmq",
"protobuf",
"pyobjc-framework-Cocoa; sys_platform == 'darwin'",
"ruff",
"vpython",
"pyvista",
"setuptools<82",
]
[project.optional-dependencies]
dev = [
"ruff",
"ty>=0.0.16",
"pytest>=8.0.0",
]
upscaler = [
"diffusers>=0.38.0",
"safetensors>=0.8.0rc1",
]
sam = [
# SAM 3 Roboflow wheel is `py3-none-any` and installable on macOS arm64/x86_64,
# but inference (`vaila/vaila_sam.py`) requires NVIDIA CUDA at runtime.
# On macOS the extra is therefore "install-only" — used to download the package
# and weights for later use on a CUDA host. See AGENTS.md § *SAM 3 video* and
# `.claude/skills/sam3-video/SKILL.md`.
"sam3==0.1.3",
]
fifa = [
"pytorch-lightning>=2.4,<3",
"timm",
"yacs",
"omegaconf",
"roma",
"braceexpand",
"tqdm",
]
[project.scripts]
vaila = "vaila:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
# `sam_3d_body/` is fetched separately by `bin/setup_fifa_sam3d.sh` (not committed,
# not always present, not used on macOS). Keep only `vaila` here so `uv sync`
# succeeds on platforms where the FIFA stack is not installed (incl. macOS).
packages = ["vaila"]
[tool.uv]
override-dependencies = [
"regex>=2025.11.3",
]
[tool.uv.workspace]
# Workspace configuration if needed
[tool.ruff]
# Ruff configuration
# See https://docs.astral.sh/ruff/configuration/
target-version = "py312"
line-length = 100
exclude = [
".git",
".venv",
"__pycache__",
"*.pyc",
"build",
"dist",
".uv",
"uv.lock",
"sam_3d_body",
"vaila/fifa_starter_lib",
]
[tool.ruff.lint]
# Enable specific rule sets (NPY = NumPy deprecations/legacy, ideal para código científico)
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"NPY", # NumPy: deprecated functions, legacy random, numpy2 deprecations
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
]
ignore = [
"E501", # Line too long (handled by formatter)
"N806", # Variable in function should be lowercase (scientific code uses X, Y, F, etc.)
"N803", # Argument name should be lowercase (same)
]
[tool.ruff.lint.per-file-ignores]
# Ignore specific rules for specific file patterns
"__init__.py" = ["F401"] # Allow unused imports in __init__.py
"*.pyi" = ["E501"] # Allow long lines in type stubs
[tool.ruff.format]
# Formatting options
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[dependency-groups]
dev = [
"ruff>=0.15.0",
"ty>=0.0.16",
"pytest>=8.0.0",
]
# https://docs.astral.sh/ty/ — type checker (Astral). Para "strict": use [tool.ty.rules] all = "error" quando o projeto estiver limpo.
[tool.ty.environment]
python-version = "3.12"
[tool.ty.src]
exclude = [
".git",
".venv",
"__pycache__",
"*.pyc",
"build",
"dist",
".uv",
"uv.lock",
"sam_3d_body",
"vaila/fifa_starter_lib",
]
# Regras por severidade (error = falha do ty check). Quando reduzir diagnósticos, pode ativar: all = "error"
# [tool.ty.rules]
# all = "warn"
[tool.pytest.ini_options]
# Suppress third-party deprecation warnings (matplotlib, pyparsing, dash)
filterwarnings = [
"ignore::pyparsing.warnings.PyparsingDeprecationWarning",
"ignore::pytest.PytestDeprecationWarning",
]