[project]
name = "railway-framework"
version = "0.13.10rc2"
description = "Railway Oriented Programming framework for Python"
readme = "readme.md"
requires-python = ">=3.10"
license = "MIT"
authors = [
    { name = "aoisakanana" }
]
keywords = ["railway", "functional", "result", "monad", "error-handling"]
classifiers = [
    "Development Status :: 4 - Beta",
    "Intended Audience :: Developers",
    "License :: OSI Approved :: MIT License",
    "Programming Language :: Python :: 3",
    "Programming Language :: Python :: 3.10",
    "Programming Language :: Python :: 3.11",
    "Programming Language :: Python :: 3.12",
    "Typing :: Typed",
]
dependencies = [
    "tenacity>=8.2.0",
    "pydantic>=2.5.0",
    "pydantic-settings>=2.1.0",
    "typer>=0.9.0",
    "loguru>=0.7.0",
    "python-dotenv>=1.0.0",
    "PyYAML>=6.0",
    "Jinja2>=3.1.0",
    "packaging>=21.0",
]

[project.optional-dependencies]
dev = [
    "ruff>=0.1.0",
    "mypy>=1.7.0",
    "pytest>=7.4.0",
    "pytest-cov>=4.1.0",
    "pytest-asyncio>=0.21.0",
]

[project.scripts]
railway = "railway.cli.main:app"

[project.urls]
Homepage = "https://github.com/aoisakanana/railway_py"
Repository = "https://github.com/aoisakanana/railway_py"

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

[tool.hatch.build.targets.sdist]
exclude = [
    ".local/",
    "dist/",
    "htmlcov/",
    "test_project/",
    "myproject/",
    "issues/",
    "設計/",
    ".coverage",
    "*.coverage",
]

[tool.hatch.build.targets.wheel]
packages = ["railway"]

[tool.hatch.build.targets.wheel.force-include]
"readme.md" = "railway/readme.md"

[tool.ruff]
line-length = 100
target-version = "py310"

[tool.ruff.lint]
select = ["E", "F", "I", "N", "W", "UP"]
ignore = ["E501"]

[tool.mypy]
python_version = "3.10"
strict = true
ignore_missing_imports = true
mypy_path = "src"
explicit_package_bases = true

[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "--strict-markers -v"
asyncio_mode = "auto"

[tool.coverage.run]
source = ["railway"]
branch = true

[tool.coverage.report]
exclude_lines = [
    "pragma: no cover",
    "if TYPE_CHECKING:",
    "raise NotImplementedError",
]

[dependency-groups]
dev = [
    "types-pyyaml>=6.0.12.20250915",
]
