-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
135 lines (117 loc) · 2.87 KB
/
pyproject.toml
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
[project]
name = "crabs"
authors = [
{email = "n.aznan@ucl.ac.uk", name = "Nik Khadijah Nik Aznan"},
{email = "s.minano@ucl.ac.uk", name = "Sofia Minano"},
]
description = "A toolkit for detecting and tracking crabs in the field."
readme = "README.md"
requires-python = ">=3.9.0"
dynamic = ["version"]
license = {text = "BSD-3-Clause"}
urls.homepage = "https://github.com/SainsburyWellcomeCentre/crabs-exploration"
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Operating System :: POSIX",
"License :: OSI Approved :: BSD License",
]
dependencies = [
"opencv-python",
"sleap[pypi]==1.3.3",
"typer",
"timecode",
"torch",
"torchvision",
"pycocotools",
"filterpy",
"lightning",
"mlflow"
]
[project.optional-dependencies]
dev = [
"pytest",
"pytest-cov",
"coverage",
"tox", # >=4 ?
"black",
"mypy",
"pre-commit",
"ruff",
"setuptools_scm",
]
[project.scripts]
extract-frames = "crabs.bboxes_labelling.extract_frames_to_label_w_sleap:app_wrapper"
combine-annotations = "crabs.bboxes_labelling.combine_and_format_annotations:app_wrapper"
train-detector = "crabs.detection_tracking.train_model:app_wrapper"
evaluate-detector = "crabs.detection_tracking.evaluate_model:app_wrapper"
# verify-videos-and-extract-samples
# extract-additional-channels
[build-system]
requires = [
"setuptools>=45",
"wheel",
"setuptools_scm[toml]>=6.2",
]
build-backend = "setuptools.build_meta"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
include = ["crabs*"]
exclude = ["tests*"]
[tool.pytest.ini_options]
addopts = "--cov=crabs"
[tool.black]
target-version = ['py39', 'py310']
skip-string-normalization = false
line-length = 79
[tool.setuptools_scm]
[tool.check-manifest]
ignore = [
".yaml",
"tox.ini",
"tests/",
"tests/test_unit/",
"tests/test_integration/",
]
[tool.ruff]
line-length = 79
exclude = ["__init__.py","build",".eggs"]
select = ["I", "E", "F"]
fix = true
ignore = [
'E501', # line too long: should be handled by black
]
# force-exclude = true
# ignore = [
# "D203", # no-blank-line-before-class
# "D212", # multi-line-summary-first-line
# "D417", # argument description in docstring (unreliable)
# ]
# per-file-ignores = {"test_*" = [
# "S101",
# ]}
# [tool.tomlsort]
# all = true
# spaces_indent_inline_array = 4
# trailing_comma_inline_array = true
# overrides."project.classifiers".inline_arrays = false
# overrides."tool.coverage.paths.source".inline_arrays = false
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py{39,310}
isolated_build = True
[gh-actions]
python =
3.9: py39
3.10: py310
[testenv]
extras =
dev
commands =
pytest -v --color=yes --cov=crabs --cov-report=xml
"""