[tool.poetry]
name = "python-accounting-utils"
description = "Python Accounting Run Utils"
authors = ["Sony Music PDE"]
readme = "README.md"
version = "0.1.0"
packages = [{include = "accounting_run_utils"}]

[tool.poetry.dependencies]
boto3 = "1.35.48"
ddtrace = "^2.7.4"
pymysql = "1.1.1"
python = "^3.12"
python-dotenv = "1.0.1"
sentry-sdk = "^2.18.0"
owslogger = "^4.0.0"
environs = "^11.0.0"

[tool.poetry.group.dev.dependencies]
mypy = "^1.13.0"
ruff = "^0.7.1"
pytest = "^8.3.3"
pytest-cov = "^5.0.0"
pytest-mock = "^3.14.0"
types-pymysql = "^1.1.0.20240524"

[[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.ruff]
line-length = 80
exclude = [
  ".eggs",
  ".git",
  ".mypy_cache",
  ".tox",
  ".venv",
  "_build",
  "logs",
]

[tool.mypy]
python_version = "3.12"
pretty = true
color_output = true
show_error_codes = true

[[tool.mypy.overrides]]
module = [
  "boto3.*",
  "owslogger.*",
  "connectors.*",
  "config.*",
]
ignore_missing_imports = true