[tool.poetry]
name = "owsclient"
version = "0.13.1"
description = "Python library for OWS RestAPI requests."
authors = ["Sony Music PDE <webdev@theorchard.com>"]
readme = "README.md"

[tool.poetry.plugins.pytest11]
owsclient = "owsclient.test.pytest_plugin"

[tool.poetry.dependencies]
python = "^3.11"
httpx = "^0.28.0"
respx = "^0.22.0"
pydantic = "^2.8.2"

[tool.poetry.group.dev.dependencies]
ruff = "^0.2.2"
mypy = "^1.10.0"
pytest = "^8.2.1"
pytest-cov = "^5.0.0"
pytest-mock = "^3.14.0"
bump2version = "^1.0.1"
fakeredis = "^2.25.1"
freezegun = "^1.5.1"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.ruff]
line-length = 88

[tool.ruff.lint]
select = ["C", "E", "F", "W", "B", "I", "UP", "T20", "TID252", "G", "D"]
ignore = ["E501", "B008", "B009", "D203", "D213"]

[tool.ruff.lint.isort]
combine-as-imports = true
forced-separate = ["tests"]

[tool.mypy]
python_version = "3.11"
strict = true
pretty = true
color_output = true
show_error_codes = true

[tool.pytest.ini_options]
addopts = [
    "--strict-config",
    "--strict-markers",
]
xfail_strict = true
junit_family = "xunit2"

[tool.coverage.report]
exclude_also = [
    "@abstractmethod",
    "@abc.abstractmethod",
    "if TYPE_CHECKING",
    "raise NotImplementedError",
]
