[project]
name = "flux"
version = "0.1.0"
description = "Inference codebase for FLUX.2"
readme = "README.md"
requires-python = ">=3.10,<3.13"
authors = [
  { name = "Black Forest Labs", email = "support@blackforestlabs.ai" }
]
license = { file = "LICENSE.md" }

dependencies = [
  "torch==2.8.0",
  "torchvision==0.23.0",
  "einops==0.8.1",
  "transformers==4.56.1",
  "safetensors==0.4.5",
  "fire==0.7.1",
  "openai==2.8.1",
  "accelerate==1.12.0",
  "datetime>=6.0",
  "litserve>=0.2.17",
  "minio>=7.2.20",
  "diffusers",
]

[project.optional-dependencies]
dev = [
  "ruff==0.6.8",
]

[build-system]
requires = ["setuptools>=64", "wheel"]
build-backend = "setuptools.build_meta"

[tool.ruff]
line-length = 110
target-version = "py312"

[tool.ruff.lint]
ignore = [
  "E501",  # line too long (handled by formatter)
]

[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"
docstring-code-format = true

[tool.uv.sources]
diffusers = { git = "https://github.com/huggingface/diffusers.git" }
