-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathpyproject.toml
More file actions
140 lines (124 loc) · 3.66 KB
/
Copy pathpyproject.toml
File metadata and controls
140 lines (124 loc) · 3.66 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
[build-system]
requires = ["poetry-core>=2.0.0"]
build-backend = "poetry.core.masonry.api"
[project]
name = "beast-backbones"
version = "1.4.0" # Update the version according to your source
description = "Behavioral analysis via self-supervised pretraining of transformers"
license = "MIT"
readme = "README.md"
requires-python = ">=3.10"
authors = [
{ name = "Yanchen Wang" },
{ name = "Matt Whiteway" },
]
keywords = ["machine learning", "deep learning", "computer_vision"]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Image Processing",
]
dependencies = [
"aniposelib (>=0.8.0)",
"imaug",
"jaxtyping",
"lightning (~=2.5)",
"numpy (>=2.0.0)",
"opencv-python-headless",
"pillow",
"pydantic",
"scikit-learn",
"tensorboard",
"toml",
"torchvision",
"tqdm",
"transformers",
]
[project.urls]
repository = "https://github.com/paninski-lab/beast"
documentation = "https://github.com/paninski-lab/beast"
# project.dependencies are used for metadata when building the project, tool.poetry.dependencies is only used to enrich
# project.dependencies for locking
[tool.poetry.dependencies]
python = ">=3.10,<3.13"
[tool.poetry]
packages = [{ include = "beast" }]
[tool.poetry.scripts]
beast = "beast.cli.main:main"
[project.optional-dependencies]
dev = [
"pre-commit",
"pyright",
"pytest",
"pytest-cov",
"pytest-html",
"urllib3 (>=2.7.0)", # harder requirement than "requests" to address security vulnerability
"requests",
"ruff",
]
[tool.ruff]
line-length = 99
exclude = [
".git",
"__pycache__",
"build",
"configs",
"dist",
"docs",
"scripts",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes (undefined names, unused imports/variables)
"I", # isort
"UP", # pyupgrade (modernize syntax: Tuple->tuple, Union->|, etc.)
"B", # flake8-bugbear (real bugs: mutable defaults, broad excepts, etc.)
# "N", # pep8-naming
]
ignore = [
"B006", # mutable default arguments are used intentionally in some places
"E203", # whitespace before ':' conflicts with black-style slice formatting
"F722", # jaxtyping dim strings (e.g. "batch channels") are not Python expressions
"F821", # undefined names in __all__ are flagged incorrectly for re-exports
]
[tool.ruff.lint.isort]
known-first-party = ["beast"]
[tool.pyright]
pythonVersion = "3.11"
pythonPlatform = "Linux"
typeCheckingMode = "basic"
include = ["beast", "tests"]
exclude = ["build", "configs", "data", "dist", "docs", "docker", "scripts"]
# torch stubs don't re-export public functions at the top level (torch.tensor, torch.allclose, etc.)
reportPrivateImportUsage = "none"
[tool.coverage.run]
# store paths relative to the repo root so that codecov can match coverage
# data against source files in the github repo, regardless of where the tests
# are run on the build machine. omit non-source directories to keep the report
## focused on beast/ only.
relative_files = true
omit = [
"data/*",
"docs/*",
"configs/*",
"htmlcov/*",
"scripts/*",
"tests/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
]
[tool.pytest.ini_options]
testpaths = "tests"
generate_report_on_test = "True"
markers = ["multigpu"]