pyproject.toml 862 Bytes
Newer Older
1
[tool.ruff]
2
line-length = 119
3
4
5
extend-exclude = [
    "src/diffusers/pipelines/flux2/system_messages.py",
]
6
7

[tool.ruff.lint]
8
# Never enforce `E501` (line length violations).
9
ignore = ["C901", "E501", "E721", "E741", "F402", "F823"]
10
select = ["C", "E", "F", "I", "W"]
11
12

# Ignore import violations in all `__init__.py` files.
13
[tool.ruff.lint.per-file-ignores]
14
15
16
"__init__.py" = ["E402", "F401", "F403", "F811"]
"src/diffusers/utils/dummy_*.py" = ["F401"]

17
[tool.ruff.lint.isort]
18
19
lines-after-imports = 2
known-first-party = ["diffusers"]
20
21
22
23
24
25
26
27
28
29
30
31
32

[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"

# Like Black, indent with spaces, rather than tabs.
indent-style = "space"

# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false

# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"