[+] add lint pipeline for ruff isort and black checks [+] add types pipeline for mypy check [+] add tests pipeline for pytest check with coverage less 70% blocker QG [+] add some tests fo QG pass
42 lines
756 B
TOML
42 lines
756 B
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",
|
|
"uvicorn>=0.44.0",
|
|
]
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
{include-group = "lints"},
|
|
{include-group = "tests"},
|
|
{include-group = "types"},
|
|
"pre-commit>=4.5.1",
|
|
]
|
|
tests = [
|
|
"httpx>=0.28.1",
|
|
"pytest>=9.0.3",
|
|
"pytest-asyncio>=1.3.0",
|
|
"pytest-cov>=7.1.0",
|
|
]
|
|
lints = [
|
|
"black>=23.7.0",
|
|
"ruff>=0.15.11",
|
|
"isort>=8.0.1",
|
|
]
|
|
types = [
|
|
"mypy>=1.20.1",
|
|
]
|
|
|
|
[tool.pytest.ini_options]
|
|
asyncio_mode = "auto"
|
|
asyncio_default_fixture_loop_scope = "function"
|
|
addopts = "--cov=src --cov-report=term"
|
|
pythonpath = "."
|
|
testpaths = "tests"
|
|
xfail_strict = true
|
|
|