-
Notifications
You must be signed in to change notification settings - Fork 122
Expand file tree
/
Copy pathpyproject.toml
More file actions
119 lines (106 loc) · 3.17 KB
/
pyproject.toml
File metadata and controls
119 lines (106 loc) · 3.17 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
[project]
name = "label-studio-sdk"
dynamic = ["version"]
[tool.poetry]
name = "label-studio-sdk"
version = "2.0.21"
description = ""
readme = "README.md"
authors = []
keywords = []
classifiers = [
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
"Operating System :: OS Independent",
"Operating System :: POSIX",
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed"
]
packages = [
{ include = "label_studio_sdk", from = "src"}
]
[tool.poetry.urls]
Repository = 'https://github.com/HumanSignal/label-studio-sdk'
[tool.poetry.dependencies]
python = ">=3.10,<4"
Pillow = ">=12.2.0"
aiohttp = { version = ">=3.13.4,<4", optional = true, python = ">=3.9"}
appdirs = ">=1.4.3"
datamodel-code-generator = "0.26.1"
httpx = ">=0.21.2"
httpx-aiohttp = { version = "0.1.8", optional = true, python = ">=3.9"}
ijson = ">=3.2.3"
jsf = "^0.11.2"
jsonschema = ">=4.23.0"
lxml = ">=6.1.0"
nltk = "^3.9.4"
numpy = ">=2.2,<3.0.0"
opencv-python-headless = "^4.12.0,<4.13"
pandas = ">=0.24.0"
pydantic = ">= 1.9.2"
pydantic-core = ">=2.18.2,<2.44.0"
pyjwt = "^2.12.0"
requests = ">=2.33.0"
requests-mock = "1.12.1"
typer = ">=0.12.3"
typing_extensions = ">= 4.0.0"
ujson = ">=5.8.0"
urllib3 = ">=2.5.0"
xmljson = "0.2.1"
[tool.poetry.group.dev.dependencies]
mypy = "==1.13.0"
pytest = "^9.0.3"
pytest-asyncio = "^1.0.0"
pytest-xdist = "^3.6.1"
python-dateutil = "^2.9.0"
types-python-dateutil = "^2.9.0.20240316"
urllib3 = ">=1.26.19,<2.0.0 || >=2.2.2,<3.0.0"
respx = "^0.22.0"
ruff = "==0.11.5"
[tool.pytest.ini_options]
testpaths = [ "tests" ]
asyncio_mode = "auto"
markers = [
"aiohttp: tests that require httpx_aiohttp to be installed",
]
[tool.mypy]
plugins = ["pydantic.mypy"]
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
]
ignore = [
"E402", # Module level import not at top of file
"E501", # Line too long
"E711", # Comparison to `None` should be `cond is not None`
"E712", # Avoid equality comparisons to `True`; use `if ...:` checks
"E721", # Use `is` and `is not` for type comparisons, or `isinstance()` for insinstance checks
"E722", # Do not use bare `except`
"E731", # Do not assign a `lambda` expression, use a `def`
"F821", # Undefined name
"F841" # Local variable ... is assigned to but never used
]
[tool.ruff.lint.isort]
section-order = ["future", "standard-library", "third-party", "first-party"]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.extras]
aiohttp=["aiohttp", "httpx-aiohttp"]
[project.scripts]
label-studio-converter = "label_studio_sdk.converter.main:main"
label-studio-sdk = "label_studio_sdk._extensions.cli.main:main"