- Add pytfm workspace dependency to tests and types groups - Create E2E test example using pytfm API and page objects - Add BlogHomePage and BlogAPI test classes Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
84 lines
1.5 KiB
TOML
84 lines
1.5 KiB
TOML
[project]
|
|
name = "blog"
|
|
version = "0.1.0"
|
|
description = "Add your description here"
|
|
readme = "README.md"
|
|
requires-python = ">=3.13"
|
|
dependencies = [
|
|
"fastapi>=0.136.0",
|
|
"pydantic>=2.13.2",
|
|
"pydantic-settings>=2.14.0",
|
|
"uvicorn>=0.44.0",
|
|
"sqlalchemy>=2.0.0",
|
|
"aiosqlite>=0.21.0",
|
|
"asyncpg>=0.30.0",
|
|
"dishka>=1.5.0",
|
|
"httpx>=0.28.0",
|
|
"jinja2>=3.1.6",
|
|
"itsdangerous>=2.2.0",
|
|
]
|
|
|
|
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["app"]
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
{include-group = "lints"},
|
|
{include-group = "tests"},
|
|
{include-group = "types"},
|
|
"pre-commit>=4.5.1",
|
|
]
|
|
tests = [
|
|
"httpx>=0.28.1",
|
|
"mimesis>=19.1.0",
|
|
"pytest>=9.0.3",
|
|
"pytest-asyncio>=1.3.0",
|
|
"pytest-cov>=7.1.0",
|
|
"pytfm",
|
|
]
|
|
lints = [
|
|
"black>=23.7.0",
|
|
"ruff>=0.15.11",
|
|
"isort>=8.0.1",
|
|
]
|
|
types = [
|
|
"mimesis>=19.1.0",
|
|
"mypy>=1.20.1",
|
|
"pytfm",
|
|
]
|
|
|
|
[project.scripts]
|
|
blog = "app.main:main"
|
|
|
|
[tool.uv.sources]
|
|
pytfm = { workspace = true }
|
|
|
|
[tool.pytest.ini_options]
|
|
asyncio_mode = "auto"
|
|
asyncio_default_fixture_loop_scope = "function"
|
|
addopts = "--cov=app --cov-report=term-missing --cov-report=html"
|
|
pythonpath = "."
|
|
testpaths = "tests"
|
|
xfail_strict = true
|
|
|
|
[tool.mypy]
|
|
strict = true
|
|
plugins = ["pydantic.mypy"]
|
|
|
|
[tool.ruff]
|
|
target-version = "py313"
|
|
line-length = 100
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "I", "W", "B", "C4", "SIM"]
|
|
ignore = ["E501"]
|
|
|
|
[tool.isort]
|
|
profile = "black"
|
|
filter_files = true
|
|
|