[project]
name = "ows-video"
version = "0.1.0"
description = "Python microservice for ows-video - handles video product CRUD"
authors = [
    {name = "Sony Music PDE"},
]
requires-python = ">=3.13,<3.15"
dependencies = [
    "boto3 (>=1.38,<2.0)",
    "boto3-stubs[mediaconvert,s3,sts,stepfunctions] (>=1.42,<2.0)",
    "botocore (>=1.38,<2.0)",
    "cloudfront-signed-cookies (>=1.2,<2.0)",
    "ddtrace (>=4.4,<5.0)",
    "Flask (>=3.1,<4.0)",
    "gtin-validator (>=1.0,<2.0)",
    "jsonschema (>=4.23,<5.0)",
    "owslogger (>=4.3,<5.0)",
    "owsrequest (>=2.10,<3.0)",
    "owsresponse (>=3.0,<4.0)",
    "PyMySQL (>=1.1,<2.0)",
    "rsa (>=4.9,<5.0)",
    "secrets_manager (>=1.4,<5.0)",
    "sentry-sdk[flask] (>=2.29,<3.0)",
    "sqlalchemy (>=2.0,<3.0)",
    "uWSGI (>=2.0,<2.1)",
]

[project.optional-dependencies]
dev = [
    "exrex (>=0.11,<1.0)",
    "factory_boy (>=3.2,<4.0)",
    "freezegun (>=1.2,<2.0)",
    "hypothesis (>=6.47,<7.0)",
    "mypy (>=1.9,<2.0)",
    "ruff (>=0.6,<1.0)",
    "pytest (>=9.0,<10.0)",
    "pytest-cov (>=7.0,<8.0)",
    "pytest-mock (>=3.13.0,<4.0.0)",
    "syrupy (>=5.0.0,<6.0.0)",
    "types-factory-boy (>=0.4,<1.0)",
    "types-jsonschema (>=4.26.0.20260408,<5.0)",
    "types-pymysql (>=1.1.0.20260508,<2.0)",
    "types-requests (>=2.31.0.20240311,<3.0)",
    "types-uWSGI (>=2.0.0.20240516,<3.0)",
    "yamllint (>=1.37,<2.0)",
]

[tool.poetry]
package-mode = false

[[tool.poetry.source]]
name = "pde"
url = "https://pypi.theorchard.io/pypi/"
priority = "supplemental"

[[tool.poetry.source]]
name = "PyPI"
priority = "primary"

[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", "T20", "TID252", "G"]
ignore = ["C901", "E501", "B007", "B008", "B009"]

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

[tool.mypy]
strict = true
show_error_codes = true
disallow_untyped_defs = true

[[tool.mypy.overrides]]
module = [
    "cloudfront_signed_cookies.*",
    "gtin.*",
    "owslogger.*",
    "owsrequest.*",
    "owsresponse.*",
    "secrets_manager.*",
]
ignore_missing_imports = true

[[tool.mypy.overrides]]
module = [
    "video.handlers",
    "video.models.ows.*",
]
disable_error_code = [
    "no-any-return",
]
