advent-of-code-ui/backend/pyproject.toml

56 lines
1.3 KiB
TOML
Raw Normal View History

2024-12-09 16:06:29 +00:00
[tool.poetry]
name = "holt59-aoc-api"
version = "0.1.0"
description = ""
authors = ["Mikaël Capelle <mikael.capelle@gmail.com>"]
packages = [{ include = "holt59", from = "src" }]
[tool.poetry.dependencies]
python = ">=3.10.0,<4.0"
fastapi = {extras = ["standard"], version = "^0.115.6"}
uvicorn = "^0.32.1"
sse-starlette = "^2.1.3"
[tool.poetry.group.dev.dependencies]
ruff = "^0.8.2"
pytest = "^8.3.4"
pyright = "^1.1.390"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poe.tasks]
format-imports = "ruff check --select I src tests --fix"
format-ruff = "ruff format src tests"
format.sequence = ["format-imports", "format-ruff"]
lint-ruff = "ruff check src tests"
lint-ruff-format = "ruff format --check src tests"
lint-pyright = "pyright src tests"
lint.sequence = ["lint-ruff", "lint-ruff-format", "lint-pyright"]
lint.ignore_fail = "return_non_zero"
[tool.ruff]
target-version = "py310"
[tool.ruff.lint]
extend-select = ["B", "Q", "I"]
[tool.ruff.lint.flake8-bugbear]
extend-immutable-calls = ["fastapi.Depends"]
[tool.ruff.lint.isort]
detect-same-package = true
section-order = [
"future",
"standard-library",
"third-party",
"first-party",
"zik_insat_backend",
"local-folder",
]
[tool.pyright]
typeCheckingMode = "strict"
reportMissingTypeStubs = true