Skip to content

Commit c726d02

Browse files
fix: Updated ruff configuration to avoid deprecated configuration warning (#7637)
Updated ruff configuration to avoid depreceated config. Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>
1 parent a68503f commit c726d02

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pyproject.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
[tool.ruff]
2+
line-length = 119
3+
4+
[tool.ruff.lint]
25
# Never enforce `E501` (line length violations).
36
ignore = ["C901", "E501", "E741", "F402", "F823"]
47
select = ["C", "E", "F", "I", "W"]
5-
line-length = 119
68

79
# Ignore import violations in all `__init__.py` files.
8-
[tool.ruff.per-file-ignores]
10+
[tool.ruff.lint.per-file-ignores]
911
"__init__.py" = ["E402", "F401", "F403", "F811"]
1012
"src/diffusers/utils/dummy_*.py" = ["F401"]
1113

12-
[tool.ruff.isort]
14+
[tool.ruff.lint.isort]
1315
lines-after-imports = 2
1416
known-first-party = ["diffusers"]
1517

0 commit comments

Comments
 (0)