|
| 1 | +[build-system] |
| 2 | +requires = ["hatchling"] |
| 3 | +build-backend = "hatchling.build" |
| 4 | + |
| 5 | +[project] |
| 6 | +name = "textql" |
| 7 | +description = "Official Python SDK for the TextQL Platform API" |
| 8 | +readme = "README.md" |
| 9 | +license = { file = "LICENSE" } |
| 10 | +requires-python = ">=3.9" |
| 11 | +authors = [{ name = "TextQL", email = "support@textql.com" }] |
| 12 | +keywords = ["textql", "sdk", "api", "analytics", "ana"] |
| 13 | +classifiers = [ |
| 14 | + "Development Status :: 3 - Alpha", |
| 15 | + "Intended Audience :: Developers", |
| 16 | + "License :: OSI Approved :: MIT License", |
| 17 | + "Programming Language :: Python :: 3", |
| 18 | + "Programming Language :: Python :: 3.9", |
| 19 | + "Programming Language :: Python :: 3.10", |
| 20 | + "Programming Language :: Python :: 3.11", |
| 21 | + "Programming Language :: Python :: 3.12", |
| 22 | + "Programming Language :: Python :: 3.13", |
| 23 | + "Topic :: Software Development :: Libraries :: Python Modules", |
| 24 | +] |
| 25 | +dynamic = ["version"] |
| 26 | +dependencies = [ |
| 27 | + "httpx >=0.27,<1", |
| 28 | + "typing_extensions >=4.7; python_version < '3.11'", |
| 29 | +] |
| 30 | + |
| 31 | +[project.optional-dependencies] |
| 32 | +dev = [ |
| 33 | + "pytest >=8", |
| 34 | + "pytest-asyncio >=0.23", |
| 35 | + "ruff >=0.6", |
| 36 | + "pyright >=1.1.380", |
| 37 | + "respx >=0.21", |
| 38 | +] |
| 39 | + |
| 40 | +[project.urls] |
| 41 | +Homepage = "https://textql.com" |
| 42 | +Documentation = "https://docs.textql.com" |
| 43 | +Repository = "https://github.com/TextQLLabs/textql-python" |
| 44 | +Issues = "https://github.com/TextQLLabs/textql-python/issues" |
| 45 | +Changelog = "https://github.com/TextQLLabs/textql-python/blob/main/CHANGELOG.md" |
| 46 | + |
| 47 | +[tool.hatch.version] |
| 48 | +path = "src/textql/_version.py" |
| 49 | + |
| 50 | +[tool.hatch.build.targets.wheel] |
| 51 | +packages = ["src/textql"] |
| 52 | + |
| 53 | +[tool.ruff] |
| 54 | +line-length = 100 |
| 55 | +target-version = "py39" |
| 56 | +src = ["src", "tests"] |
| 57 | + |
| 58 | +[tool.ruff.lint] |
| 59 | +select = [ |
| 60 | + "E", # pycodestyle errors |
| 61 | + "F", # pyflakes |
| 62 | + "I", # isort |
| 63 | + "B", # bugbear |
| 64 | + "UP", # pyupgrade |
| 65 | + "RUF", # ruff-specific |
| 66 | +] |
| 67 | + |
| 68 | +[tool.pyright] |
| 69 | +include = ["src", "tests"] |
| 70 | +pythonVersion = "3.9" |
| 71 | +typeCheckingMode = "strict" |
| 72 | +venvPath = "." |
| 73 | +venv = ".venv" |
| 74 | + |
| 75 | +[[tool.pyright.executionEnvironments]] |
| 76 | +root = "tests" |
| 77 | +reportUnknownMemberType = "none" |
| 78 | +reportUnknownParameterType = "none" |
| 79 | +reportUnknownVariableType = "none" |
| 80 | +reportMissingParameterType = "none" |
| 81 | + |
| 82 | +[tool.pytest.ini_options] |
| 83 | +testpaths = ["tests"] |
| 84 | +asyncio_mode = "auto" |
0 commit comments