[build-system] requires = ["hatchling"] build-backend = "hatchling.build" [project] name = "openshock" version = "0.2.0b1" description = "The official OpenShock Python SDK to integrate with an OpenShock backend easily" readme = "README.md" requires-python = ">=3.10" license = { text = "MIT" } authors = [ { name = "OpenShock", email = "contact@openshock.app" }, ] dependencies = [ "httpx>=0.28.1", ] keywords = ["openshock", "api", "iot", "signalr", "asyncio"] classifiers = [ "Development Status :: 3 - Alpha", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", "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", ] dev = [ "openshock[realtime]", "pytest>=8.0", "pytest-asyncio>=0.24", "pytest-cov", "pytest-timeout", "mypy>=1.10", "ruff>=0.8", ] # --- ruff (linter + formatter) --- [tool.ruff] target-version = "py310" line-length = 120 # Generated from openshock/_async by scripts/unasync.py; formatting it would make it drift. extend-exclude = ["openshock/_sync"] [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.10" 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"