[project] name = "pravda" version = "1.0.0" description = "Truth Social to Discord relay service" readme = "README.md" requires-python = ">=3.12" dependencies = [ "truthbrush>=0.5.0", "requests>=2.31.0", "fastapi>=0.109.0", "uvicorn[standard]>=0.27.0", "ffmpeg-python>=0.2.0", "pynacl>=1.5.0", "aiofiles>=23.2.0", "httpx>=0.26.0", ] [project.optional-dependencies] dev = [ "black", "ruff", "mypy", "pytest", "types-requests", ] [tool.black] line-length = 88 target-version = ["py312"] [tool.ruff] line-length = 88 target-version = "py312" [tool.ruff.lint] select = [ "E", # pycodestyle errors "W", # pycodestyle warnings "F", # pyflakes "I", # isort "B", # flake8-bugbear "C4", # flake8-comprehensions "UP", # pyupgrade ] ignore = [ "E501", # line too long (handled by black) ] [tool.mypy] python_version = "3.12" strict = true warn_return_any = true warn_unused_ignores = true disallow_untyped_defs = true [[tool.mypy.overrides]] module = [ "truthbrush.*", "ffmpeg.*", "nacl.*", ] ignore_missing_imports = true [tool.pytest.ini_options] testpaths = ["tests"] python_files = ["test_*.py"]