-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
152 lines (132 loc) · 4.15 KB
/
pyproject.toml
File metadata and controls
152 lines (132 loc) · 4.15 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
[build-system]
requires = ["setuptools >= 71.0.0"]
build-backend = "setuptools.build_meta"
[project]
authors = [
{ name = "Thousand Brains Project" }
]
classifiers = [
"Development Status :: 2 - Pre-Alpha", # Update this status as the code evolves
"License :: OSI Approved :: MIT License",
"Private :: Do Not Upload to PyPI", # Remove if you want to upload to PyPI
"Programming Language :: Python :: 3",
]
dependencies = [
"tbp.monty", # imported via conda (thousandbrainsproject::tbp.monty)
"fastapi",
"uvicorn",
"python-multipart",
"pillow",
"openvr",
"vpython",
"opencv-python",
# Core dependencies for visualization implementations
"numpy>=1.21.0",
"scipy>=1.7.0",
"requests>=2.25.0",
# Plotly/Dash implementation (already included)
"dash>=2.10.0",
"plotly>=5.14.0",
# Streamlit implementation
"streamlit>=1.22.0",
# Qt implementation
"PyQt6>=6.4.0",
# "PyOpenGL>=3.1.0",
# "PyOpenGL-accelerate>=3.1.0",
"matplotlib>=3.5.0",
# Panel/HoloViews implementation
"panel>=1.0.0",
"holoviews>=1.16.0",
"param>=1.13.0",
"bokeh>=3.0.0",
]
description = "Monty for Ultrasound Demo - TBP Hackathon 2025"
dynamic = ["version"]
license = { file = "LICENSE" }
name = "tbp.ultrasound_perception"
readme = "README.md"
[project.optional-dependencies]
dev = [
# Check for undeclared dependencies
"deptry",
# Python static type checker
"mypy==1.11.2",
# Testing, code style, etc...
"pytest==7.1.1",
"pytest-xdist==2.5.0",
"pytest-cov==3.0.0",
# Python linter and formatter
"ruff==0.7.1",
]
[project.urls]
Repository = "https://github.com/thousandbrainsproject/tbp.ultrasound_perception"
Issues = "https://github.com/thousandbrainsproject/tbp.ultrasound_perception/issues"
[tool.deptry]
exclude = ["venv", "\\.venv", "\\.direnv", "\\.git", "setup\\.py"]
experimental_namespace_package = true # recognize `tbp.` prefixed packages as a namespace package
ignore = ["DEP002"]
known_first_party = [
"configs", # experiment configurations
]
[tool.mypy]
explicit_package_bases = true
files = ["src", "tests"]
mypy_path = ["src", "tests"]
warn_unused_configs = true
[[tool.mypy.overrides]]
module = "tbp.monty.*"
ignore_missing_imports = true # Remove once tbp.monty types are published
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -n auto"
testpaths = ["tests/unit"]
filterwarnings = [
"ignore:.*:DeprecationWarning",
]
junit_family = "xunit1"
[tool.ruff]
line-length = 88
target-version = "py38"
[tool.ruff.format]
indent-style = "space"
line-ending = "auto"
quote-style = "double"
skip-magic-trailing-comma = false
[tool.ruff.lint]
preview = true
explicit-preview-rules = true # comment this out to check all preview rules
select = [
"ALL",
# Explicitly opt-in to preview rules
"CPY001", # Missing copyright notice at top of file
"DOC201", # return is not documented in docstring
"DOC202", # Docstring should not have a returns section because the function doesn't return anything
"DOC402", # yield is not documented in docstring
"DOC403", # Docstring has a "Yields" section but the function doesn't yield anything
"DOC501", # Raised exception {id} missing from docstring
"DOC502", # Raised exception is not explicitly raised: {id}
"E261", # Insert at least two spaces before an inline comment
"E262", # Inline comment should start with '# '
"E265", # Block comment should start with '# '
]
ignore = [
"COM812", # Trailing comma missing; conflicts with ruff format
"ISC001", # Implicitly concatenated string literals on one line; conflicts with ruff format
]
[tool.ruff.lint.per-file-ignores]
# D104: Missing docstring in public package
"__init__.py" = ["D104"]
# D100: Missing docstring in public module
# D101: Missing docstring in public class
# D102: Missing docstring in public method
# S101: Use of `assert` detected
"tests/**.py" = ["D100", "D101", "D102", "S101"]
[tool.ruff.lint.flake8-copyright]
author = "Thousand Brains Project"
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.setuptools.packages.find]
where = ["."]
namespaces = true