-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
104 lines (90 loc) · 2.23 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
[build-system]
requires = ["hatchling", "hatch-fancy-pypi-readme"]
build-backend = "hatchling.build"
[project]
name = "userhub-sdk"
dynamic = ["readme", "version"]
description = "UserHub Python SDK"
license = "MIT"
requires-python = ">=3.8"
authors = [
{ name = "UserHub", email = "[email protected]" },
]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Web Environment",
"Framework :: AsyncIO",
"Framework :: Trio",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"httpcore>=1,<2",
]
[project.optional-dependencies]
asyncio = [
"httpcore[asyncio]",
]
trio = [
"httpcore[trio]",
]
[tool.hatch.envs.test]
dependencies = [
"mypy>=1,<2",
"pytest-asyncio>=0.24,<0.25",
"pytest-httpserver>=1,<2",
"pytest>=8,<9",
"userhub-sdk[asyncio]",
"userhub-sdk[trio]",
]
[project.urls]
Homepage = "https://userhub.com"
Source = "https://github.com/userhubdev/python-sdk"
[tool.hatch.version]
path = "src/userhub_sdk/_internal/constants.py"
[tool.hatch.build.targets.sdist]
include = [
"/LICENSE",
"/README.md",
"/src/userhub_sdk",
]
[tool.hatch.build.targets.wheel]
packages = ["src/userhub_sdk"]
[tool.hatch.metadata.hooks.fancy-pypi-readme]
content-type = "text/markdown"
[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
path = "README.md"
[tool.mypy]
strict = true
[tool.ruff]
target-version = "py38"
line-length = 88
extend-exclude = ["src/userhub_sdk/types/_str_enum.py"]
unsafe-fixes = true
[tool.ruff.lint]
ignore = [
"A",
"BLE001",
"E501",
"EM",
"FA100",
"N818",
"PLR2004",
"SLF001",
"TID252",
"TRY003",
]
[tool.ruff.lint.per-file-ignores]
"examples/*" = ["INP001", "T201"]
"examples/http-server-webhook/main.py" = ["N802"]
"tests/*" = ["S101", "S106", "TRY002"]
[tool.ruff.lint.isort]
combine-as-imports = true