-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
88 lines (76 loc) · 2.4 KB
/
Copy pathpyproject.toml
File metadata and controls
88 lines (76 loc) · 2.4 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "nope-net"
dynamic = ["version"]
description = "Python SDK for the NOPE safety API: risk classification for conversations"
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.9"
authors = [
{ name = "NopeNet, LLC", email = "support@nope.net" }
]
keywords = ["safety", "ai", "risk", "classification", "mental-health", "crisis"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"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 :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
dependencies = [
"httpx>=0.25.0",
"pydantic>=2.0.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"pytest-asyncio>=0.23.0",
"ruff>=0.4.0",
# mypy 2.x dropped `python_version = "3.9"`; 1.x still type-checks against the 3.9 floor.
"mypy>=1.8,<2",
"build>=1.0",
]
[project.urls]
Homepage = "https://nope.net"
Documentation = "https://docs.nope.net"
Repository = "https://github.com/nope-net/python-sdk"
Issues = "https://github.com/nope-net/python-sdk/issues"
Changelog = "https://github.com/nope-net/python-sdk/blob/main/CHANGELOG.md"
[tool.hatch.version]
path = "src/nope_net/__init__.py"
[tool.hatch.build.targets.wheel]
packages = ["src/nope_net"]
[tool.hatch.build.targets.sdist]
exclude = ["/.github", "/dist", "/___*"]
[tool.ruff]
line-length = 100
target-version = "py39"
src = ["src", "tests", "scripts"]
[tool.ruff.lint]
select = ["E", "F", "I", "N", "W"]
[tool.ruff.format]
quote-style = "double"
[tool.mypy]
python_version = "3.9"
strict = true
# anyio (pulled in by httpx) ships py3.10+ syntax; checking it under the 3.9 floor
# fails to parse. Our own code is what the floor guards, so skip following into it.
[[tool.mypy.overrides]]
module = ["anyio", "anyio.*"]
follow_imports = "skip"
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
markers = [
"live: calls api.nope.net with a real key; opt in with NOPE_LIVE=1 and `pytest -m live`",
]
addopts = "-m \"not live\""