services/sse-api/pyproject.toml (61 lines of code) (raw):

[tool.poetry] authors = ["Sylvain Lesage <sylvain.lesage@huggingface.co>"] description = "SSE API app" name = "sse-api" version = "0.1.0" license = "Apache-2.0" [tool.poetry.dependencies] python = "3.9.18" environs = "^9.5.0" libapi = {path = "../../libs/libapi", develop = true} motor = "^3.3.1" sse-starlette = "^2.0.0" uvicorn = {extras = ["standard"], version = "^0.30.1"} watchdog = { extras = ["watchmedo"], version = "^2.2.1" } [tool.poetry.group.dev.dependencies] bandit = "^1.7.4" httpx = "^0.25.0" httpx-sse = "^0.1.0" motor-types = "^1.0.0b0" mypy = "^1.10.0" pandas-stubs = "^1.5.3" pip-audit = "^2.7.3" pytest = "^8.2.2" pytest-asyncio = "^0.23.7" pytest-memray = "^1.6.0" ruff = "^0" types-jsonschema = "^4.17.0.4" types-psutil = "^5.9.5" [build-system] build-backend = "poetry.core.masonry.api" requires = ["poetry-core>=1.0.0"] [tool.pytest.ini_options] filterwarnings = ["ignore::DeprecationWarning"] markers = [] log_cli = true [tool.mypy] strict = true disallow_untyped_calls = false # ^ call to expected_algorithm.from_jwk forces to set this to false [[tool.mypy.overrides]] module = [ "datasets.*", "prometheus_client.*", "pyarrow.*", "tqdm.*", "fsspec.*" ] # ^ prometheus_client is now typed, but starlette-prometheus requires an old version ignore_missing_imports = true [tool.ruff] line-length = 119 src = ["src"] target-version = "py39" [tool.ruff.lint] extend-select = [ "ARG", # flake8-unused-arguments "I", # isort # flake8-pep585: "UP006", # non-pep585-annotation "UP035", # deprecated-import ]