[project]
name = "ows-transcoding"
version = "0.1.0"
description = "Web service for managing asset transcoding."
authors = [
    {name="Sony Music PDE"}
]
requires-python = ">=3.11,<4.0"
readme = "README.md"
dependencies = [
    "boto3 (>=1.42,<2.0)",
    "boto3-stubs[s3,sqs] (>=1.42,<2.0)",
    "ddtrace (>=4.0,<5.0)",
    "Flask (>=3.1,<4.0)",
    "jsonschema (>=4.23,<5.0)",
    "owsrequest (>=3.0,<4.0)",
    "owsclient (>=0.9,<1.0)",
    "owslogger (>=4.3,<5.0)",
    "PyMySQL (>=1.1,<2.0)",
    "secrets-manager (>=1.4,<2.0)",
    "sentry-sdk[flask] (>=2.8,<3.0)",
    "sqlalchemy[mypy] (>=2.0,<3.0)",
    "uWSGI (>=2.0.31,<2.1)",
]

[project.optional-dependencies]
dev = [
    "flexmock (>=0.10,<1.0)",
    "mypy (>=1.9.0,<2.0.0)",
    "pytest (>=9.0,<10.0)",
    "pytest-asyncio (>=1.0,<2.0)",
    "pytest-cov (>=7.0,<8.0)",
    "pytest-mock (>=3.13,<4.0)",
    "ruff (>=0.4,<1.0)",
    "types-jsonschema (>=4.26.0.20260202,<5.0)",
    "types-requests (>=2.31.0.20240311,<3.0)",
    "types-uwsgi (>=2.0.0.20250809,<3.0)",
    "yamllint (>=1.37.0,<2.0.0)",
]

[tool.poetry]
package-mode = false

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

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

[tool.mypy]
strict = true
show_error_codes = true
disallow_untyped_defs = true
plugins = ["sqlalchemy.ext.mypy.plugin"]

[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.overrides]]
module = [
    "owsrequest.*",
    "owsresponse.*",
    "secrets_manager.*"
]
ignore_missing_imports = true

[[tool.mypy.overrides]]
module = [
    "transcoding.handlers",
    "transcoding.validation.json_schema",
]
disable_error_code = [
    "no-any-return"
]
