[project]
name = "refresh-m2m-token"
version = "0.1.0"
description = ""
authors = [{ name = "The Orchard", email = "webdev@theorchard.com" }]
requires-python = "~=3.12"
readme = "README.md"
dependencies = [
    "anydi>=0.29.2,<0.30",
    "pydantic>=2.4.2,<3",
    "pydantic-settings>=2.0.3,<3",
    "fansifter-common>=0.22.1,<0.23",
    "boto3>=1.28.63,<2",
    "sentry-sdk>=2.14.0,<3",
    "datadog-lambda>=6.98.0,<7",
    "auth0-python>=4.7.1,<5",
    "idna==3.10",
    "aiohttp==3.10.5",
]

[dependency-groups]
dev = [
    "mypy>=1.9.0,<2",
    "ruff>=0.6.7,<0.7",
    "pytest>=8.1.1,<9",
    "pytest-cov>=5.0.0,<6",
    "pytest-env>=1.1.0,<2",
    "boto3-stubs[secretsmanager]>=1.26.10,<2",
    "freezegun>=1.4.0,<2",
]

[tool.uv]

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

[tool.hatch.build.targets.sdist]
include = ["./app"]

[tool.hatch.build.targets.wheel]
include = ["./app"]

[tool.hatch.build.targets.wheel.sources]
"./app" = "app"

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.ruff]
line-length = 88
target-version = "py311"

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

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

[tool.mypy]
python_version = "3.11"
strict = true
show_error_codes = true
plugins = ["pydantic.mypy"]

[[tool.mypy.overrides]]
module = ["auth0.*"]
ignore_missing_imports = true

[tool.pytest.ini_options]
addopts = [
    "--strict-config",
    "--strict-markers",
    "-p no:anydi",
    "-p no:ows_client",
]
xfail_strict = true
junit_family = "xunit2"
env = [
    "Environment = test",
    "LOG_FORMAT = console"
]
