[project]
name = "ows-vectororder"
version = "0.1.0"
description = "This microservice provides the backend for the Direct Delivery search and Vector order creation"
authors = [
    {name = "Sony Music PDE"},
]
requires-python = ">=3.11.0,<4.0"
dependencies = [
    "aws-requests-auth == 0.4.3",
    "boto3 (>=1.35.46,<2.0.0)",
    "boto3-stubs[s3,dynamodb] (>=1.39.3,<2.0.0)",
    "Flask (>=3.1.3,<4.0.0)",
    "marshmallow (>=3.26.2,<4.0.0)",
    "opensearch-py (>=3.0.0,<4.0.0)",
    "owslogger (>=4.0.0,<5.0.0)",
    "owsrequest (>=2.9.0,<3.0.0)",
    "pydantic (>=2.11.5,<3.0.0)",
    "PyMySQL (>=1.1.1,<2.0.0)",
    "secrets-manager == 1.4.4",
    "sentry-sdk[flask] (>=2.17.0,<3.0.0)",
    "SQLAlchemy (>=2.0.39,<2.1.0)",
    "tzdata (>=2025.2,<2026.0)",
    "uWSGI (>=2.0.23,<2.1.0)",
    "Werkzeug (>=3.1.4,<3.2.0)",
]

[project.optional-dependencies]
dev = [
    "aws-requests-auth-stubs (>=0.4.3.2,<0.5.0.0)",
    "flexmock (>=0.12,<1.0.0)",
    "freezegun (>=1.5.2,<2.0.0)",
    "mypy (>=1.9.0,<2.0.0)",
    "moto[s3,dynamodb] (>=5.0.0,<6.0.0)",
    "ruff (>=0.6.9,<1.0.0)",
    "pytest (>=9.0,<10.0)",
    "yamllint (>=1.37.0,<2.0.0)",
    "pytest-cov (>=7.0,<8.0)",
    "pytest-mock (>=3.13.0,<4.0.0)",
    "syrupy (>=5.0,<6.0)",
    "types-requests (>=2.31.0.20240311,<3.0.0)",
    "types-uWSGI (>=2.0.0.20240516,<2.0.0.20260101)",
]

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

[[tool.mypy.overrides]]
module = [
    "vectororder.exceptions",
    "vectororder.handlers.*",
    "vectororder.models.search.*",
    "vectororder.utils.handlers",
]
disable_error_code = [
    "no-any-return"
]
