[project]
name = "adjustments-apply"
version = "1.0.0"
description = "Lambda function for adjustments apply"
readme = "README.md"
requires-python = "~=3.13.0"
dependencies = [
    "abacus-common-logic~=5.15.0",
    "anyio~=4.9.0",
    "datadog-lambda~=6.107.0",
    "deprecated~=1.2.18",
    "lambdacommon~=6.0.3",
    "owsclient~=0.7.0",
    "python-dotenv~=1.0",
    "requests-futures~=1.0.2",
    "secrets-manager~=1.4.6",
    "simplejson~=3.17",
]

[project.urls]
Repository = "https://github.com/theorchard/lambda-abacus"

[dependency-groups]
dev = [
    "pytest~=9.0",
    "pytest-cov~=6.3",
    "pytest-html~=4.1",
    "pytest-jira~=0.3",
    "pytest-mock~=3.14.1",
    "ruff~=0.14",
    "yamllint~=1.37",
]
integration = [
    {include-group = "dev"},
    "mysql-connector-python~=9.1.0",
    "py==1.11.0",
]

# --- Coverage ---

[tool.coverage.run]
omit = ["tests/*"]

# --- Pytest ---

[tool.pytest.ini_options]
pythonpath = ["."]
testpaths = ["tests"]
norecursedirs = ["env/*"]

# --- Ruff ---

[tool.ruff]
line-length = 88
indent-width = 4

[tool.ruff.lint]
select = ["A", "D", "E", "F", "I", "Q", "W"]
ignore = ["D413", "D203", "D213", "E501"]

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

[tool.ruff.lint.flake8-quotes]
inline-quotes = "single"

[tool.ruff.format]
quote-style = "single"

# --- uv ---

[[tool.uv.index]]
name = "theorchard"
url = "https://pypi.theorchard.io/pypi/"
