flux2 / pyproject.toml
capybara4996's picture
initial commit
2706625
[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.57.3",
"safetensors==0.4.5",
"fire==0.7.1",
"openai==2.8.1",
"bitsandbytes>=0.48.2",
"jupyter>=1.1.1",
"diffusers>=0.35.2",
"accelerate>=1.12.0",
"matplotlib>=3.10.7",
"gradio>=6.2.0",
"googletrans>=4.0.2",
]
[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" }