-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
56 lines (46 loc) · 1.57 KB
/
Copy pathpyproject.toml
File metadata and controls
56 lines (46 loc) · 1.57 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
[build-system]
requires = ["setuptools>=68"]
build-backend = "setuptools.build_meta"
[project]
name = "yolo-label-recovery"
version = "1.1.0"
description = "Safe, resource-aware semi-automatic missing-label discovery for YOLO datasets"
readme = "README.md"
requires-python = ">=3.10"
license = {file = "LICENSE"}
dependencies = [
"PyYAML>=6.0",
"Pillow>=10.0",
]
[project.optional-dependencies]
inference = [
"ultralytics>=8.4.33,<9",
"opencv-python>=4.8",
]
dev = [
"pytest>=8,<10",
"ruff>=0.9,<1",
]
[project.scripts]
yolo-label-recovery = "yolo_label_recovery.cli:main"
[tool.setuptools]
py-modules = ["autolabel_with_single_class_models"]
[tool.setuptools.packages.find]
include = ["yolo_label_recovery*"]
[tool.setuptools.package-data]
yolo_label_recovery = ["*.yaml"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-q"
[tool.ruff]
target-version = "py310"
line-length = 120
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "SIM", "RUF"]
ignore = ["E501"] # Embedded HTML/CSS templates are intentionally kept readable as complete lines.
[tool.ruff.lint.per-file-ignores]
"docs/build_mining_blog_docx.py" = ["RUF001"] # Chinese publication content intentionally uses CJK punctuation.
"docs/build_project_handbook.py" = ["RUF001"] # Chinese handbook content intentionally uses CJK punctuation.
"tests/run_smoke_tests.py" = ["E402"]
"yolo_label_recovery/review.py" = ["RUF001"] # Chinese offline-review instructions intentionally use CJK punctuation.
"yolo_label_recovery/review_gui.py" = ["RUF001"] # Chinese reviewer localization intentionally uses CJK punctuation.