Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
93 lines (83 loc) · 2.34 KB
/
Copy pathpyproject.toml
File metadata and controls
93 lines (83 loc) · 2.34 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"]
build-backend = "hatchling.build"
[project]
name = "openshock"
version = "1.0.0"
description = "The official OpenShock Python SDK to integrate with an OpenShock backend easily"
readme = "README.md"
requires-python = ">=3.11"
license = { text = "MIT" }
authors = [
{ name = "OpenShock", email = "contact@openshock.app" },
]
dependencies = [
"httpx2>=2.13.1,<3",
"attrs>=23.1",
]
keywords = ["openshock", "api", "iot", "signalr", "asyncio"]
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Framework :: AsyncIO",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Typing :: Typed",
]
[project.urls]
Homepage = "https://openshock.org"
Documentation = "https://github.com/OpenShock/SDK.Python"
Repository = "https://github.com/OpenShock/SDK.Python"
Issues = "https://github.com/OpenShock/SDK.Python/issues"
[project.optional-dependencies]
# SignalR user hub and live control (openshock.realtime)
realtime = [
"websockets>=13.0",
]
# Pinned toolchain for scripts/generate.py. The versions decide the generated output, so
# bump them deliberately and regenerate in the same change.
codegen = [
"openapi-python-client==0.30.0",
"ruff==0.17.6",
]
dev = [
"openshock[realtime,codegen]",
"pytest>=8.0",
"pytest-asyncio>=0.24",
"pytest-cov",
"pytest-timeout",
"mypy>=1.10",
]
# --- ruff (linter + formatter) ---
[tool.ruff]
target-version = "py311"
line-length = 120
# Generated by scripts/generate.py, which formats it itself.
extend-exclude = ["openshock/rest"]
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "B", "SIM"]
[tool.ruff.lint.isort]
known-first-party = ["openshock"]
# --- mypy ---
[tool.mypy]
python_version = "3.11"
strict = true
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
# --- pytest ---
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
timeout = 30
asyncio_default_fixture_loop_scope = "function"
[tool.coverage.run]
# Generated code; tests/test_generated.py checks it against the spec instead.
omit = ["openshock/rest/*"]