-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Expand file tree
/
Copy pathpyproject.toml
More file actions
93 lines (83 loc) · 2.33 KB
/
Copy pathpyproject.toml
File metadata and controls
93 lines (83 loc) · 2.33 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
[build-system]
requires = ["hatchling>=1.20.0", "hatch-vcs", "hatch-fancy-pypi-readme"]
build-backend = "hatchling.build"
[project]
name = "labelme"
description = "Image annotation with Python."
license = { text = "GPL-3.0-only" }
requires-python = ">=3.12"
authors = [{ name = "Kentaro Wada", email = "www.kentaro.wada@gmail.com" }]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dependencies = [
"imgviz>=2.0.0",
"loguru>=0.7",
"matplotlib>=3.7",
"natsort>=7.1.0",
"numpy>=1.24",
"onnxruntime>=1.23.2",
"osam>=0.4.0",
"pillow>=2.8",
"pyside6>=6.8",
"scipy>=1.8",
"scikit-image>=0.21",
"tifffile>=2024.1.30",
"ruamel-yaml>=0.18",
]
dynamic = ["readme", "version"]
[tool.hatch.metadata.hooks.fancy-pypi-readme]
content-type = "text/markdown"
fragments = [{ path = "README.md" }]
[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
pattern = 'src="(?!https?://)([^"]+)"'
replacement = 'src="https://raw.githubusercontent.com/wkentaro/labelme/main/\1"'
[tool.hatch.version]
source = "vcs"
[dependency-groups]
dev = [
"ipython",
"mdformat-frontmatter>=2.0.10",
"mdformat>=0.7",
"pytest>=8.3.4",
"pytest-cov>=7.1.0",
"pytest-qt>=4.4.0",
"pytest-xdist>=3.8.0",
"ruff~=0.12.11",
"taplo>=0.9.3",
"twine>=6.1.0",
"ty>=0.0.31",
"types-pillow>=10.2.0.20240822",
"typos>=1.45.0",
"yamlfix>=1.19.1",
"mdformat-gfm>=1.0.0",
]
[project.scripts]
labelme = "labelme.__main__:main"
[tool.pytest.ini_options]
qt_api = "pyside6"
markers = ["gui: mark a test as a GUI test."]
[tool.ruff.lint]
select = [
"ANN", # flake8-annotations
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
]
# UP040 wants PEP 695 `type X = ...`, but our Literal aliases are enumerated at
# runtime via typing.get_args(), which returns () for a lazy `type` alias.
ignore = ["UP040"]
[tool.ruff.lint.isort]
force-single-line = true
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]