Files

96 lines
1.7 KiB
TOML

[project]
name = "backend"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
authors = [
{ name = "Jermey Van Sant", email = "jermey.e.vansant@gmail.com" }
]
requires-python = ">=3.13"
dependencies = [
"fastapi[standard]>=0.141.1",
"sqlalchemy>=2.0.54",
]
[tool.fastapi]
entrypoint = "app.main:app"
[tool.pytest.ini_options]
pythonpath = ["."]
[tool.ruff]
line-length = 88
target-version = "py312"
indent-width = 2
[tool.ruff.format]
indent-style = "space"
quote-style = "double"
[tool.ruff.lint]
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
"__init__.py",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
]
select = [
"E", # pycodestyle
"F", # Pyflakes
"D", # Docstrings
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"ANN",
"RUF", # Ruff-specific rules
]
ignore = ["EXE002"]
[dependency-groups]
dev = [
"httpx2>=2.13.1",
"pytest>=9.1.1",
]
[tool.ty.environment]
python-version = "3.12"
python = ".venv" # Ensures ty uses your uv virtual environment
[tool.ty.src]
include = ["src", "tests"]
# Fine-tune individual rules (options: "error", "warn", "ignore")
[tool.ty.rules]
unresolved-import = "error"
unused-ignore-comment = "warn"
redundant-cast = "ignore"
[tool.ty.analysis]
strict-equality-semantics = true
respect-type-ignore-comments = true