Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
104 lines (90 loc) · 2.78 KB
/
Copy pathpyproject.toml
File metadata and controls
104 lines (90 loc) · 2.78 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
[build-system]
requires = ["hatchling>=1.27"]
build-backend = "hatchling.build"
[project]
name = "shieldlabs"
dynamic = ["version"]
description = "ShieldLabs server SDK for Python: History API and Management API clients, webhook verification, typed events and risk helpers."
readme = "README.md"
requires-python = ">=3.9"
license = "MIT"
license-files = ["LICENSE"]
authors = [{ name = "ShieldLabs Inc.", email = "contact@shieldlabs.ai" }]
keywords = [
"shieldlabs",
"device-intelligence",
"fraud-detection",
"risk-score",
"webhooks",
"account-abuse",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Security",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
dependencies = ["httpx>=0.25,<1"]
[project.optional-dependencies]
# Upper bounds keep CI results stable when a tool publishes a new release; raise them on purpose.
dev = [
"anyio>=3.7,<5",
"mypy>=1.8,<2.4",
"pytest>=7.4,<10",
"pytest-cov>=4.1,<8",
"respx>=0.20.2,<0.24",
"ruff>=0.6,<0.17",
]
[project.urls]
Homepage = "https://shieldlabs.ai"
Documentation = "https://docs.shieldlabs.ai"
Repository = "https://github.com/ShieldLabs-ai/shieldlabs-python"
Issues = "https://github.com/ShieldLabs-ai/shieldlabs-python/issues"
Changelog = "https://github.com/ShieldLabs-ai/shieldlabs-python/blob/main/CHANGELOG.md"
[tool.hatch.version]
path = "src/shieldlabs/_version.py"
[tool.hatch.build.targets.wheel]
packages = ["src/shieldlabs"]
[tool.hatch.build.targets.sdist]
include = ["src/shieldlabs", "tests", "examples", "README.md", "CHANGELOG.md", "LICENSE"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-ra"
filterwarnings = ["error::DeprecationWarning:shieldlabs.*"]
[tool.coverage.run]
source = ["shieldlabs"]
branch = true
[tool.coverage.report]
fail_under = 90
show_missing = true
skip_covered = false
exclude_also = [
"if TYPE_CHECKING:",
"raise NotImplementedError",
"@overload",
]
[tool.ruff]
line-length = 100
extend-exclude = ["generated"]
target-version = "py39"
src = ["src", "tests"]
[tool.ruff.lint]
select = ["E", "W", "F", "I", "B", "UP", "SIM", "C4", "RUF", "N", "PT", "RET", "PIE"]
[tool.ruff.lint.pyupgrade]
# Keep typing.Optional / typing.Union so annotations stay evaluable on Python 3.9.
keep-runtime-typing = true
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["PT011"]
[tool.mypy]
strict = true
warn_unreachable = true