add autogenerated reqclient methods

update tests so they pass

add Taskfile

add hatch-dotenv plugin
This commit is contained in:
2026-03-26 07:05:34 +00:00
parent 4e9fb934be
commit 9d99ea0aea
7 changed files with 2274 additions and 1935 deletions

View File

@@ -9,13 +9,8 @@ description = "A Python SDK for OBS Studio WebSocket v5.0"
readme = "README.md"
license = { text = "GPL-3.0-only" }
requires-python = ">=3.9"
authors = [
{ name = "Adem Atikturk", email = "aatikturk@gmail.com" },
]
dependencies = [
"tomli >= 2.0.1;python_version < '3.11'",
"websocket-client",
]
authors = [{ name = "Adem Atikturk", email = "aatikturk@gmail.com" }]
dependencies = ["tomli >= 2.0.1;python_version < '3.11'", "websocket-client"]
[project.urls]
Homepage = "https://github.com/aatikturk/obsws-python"
@@ -24,9 +19,10 @@ Homepage = "https://github.com/aatikturk/obsws-python"
path = "obsws_python/version.py"
[tool.hatch.build.targets.sdist]
include = [
"/obsws_python",
]
include = ["/obsws_python"]
[tool.hatch.env]
requires = ["hatch-dotenv"]
[tool.hatch.envs.default]
dependencies = ["pre-commit"]
@@ -42,6 +38,11 @@ scene_rotate = "python {root}\\examples\\scene_rotate\\."
[tool.hatch.envs.hatch-test]
randomize = true
env-include = ["OBSWS_TEST_*"]
[tool.hatch.env.collectors.dotenv.hatch-test]
env-files = [".env"]
fail-on-missing = true
[tool.hatch.envs.hatch-test.scripts]
run = "pytest{env:HATCH_TEST_ARGS:} {args}"
@@ -51,20 +52,11 @@ python = ["313", "312", "311", "310", "39"]
[tool.hatch.envs.style]
detached = true
dependencies = [
"black",
"isort",
]
dependencies = ["black", "isort"]
[tool.hatch.envs.style.scripts]
check = [
"black --check --diff .",
"isort --check-only --diff .",
]
fmt = [
"isort .",
"black .",
]
check = ["black --check --diff .", "isort --check-only --diff ."]
fmt = ["isort .", "black ."]
[tool.black]
line-length = 88
@@ -82,4 +74,4 @@ extend-exclude = '''
[tool.isort]
profile = "black"
skip = [".gitignore", ".dockerignore"]
skip_glob = [".git/*", ".hatch/*", ".pytest_cache/*"]
skip_glob = [".git/*", ".hatch/*", ".pytest_cache/*"]