Skip to content

Commit c72fcfc

Browse files
committed
fix: update Ruff configuration to resolve deprecation warnings
- Move linter settings to [tool.ruff.lint] section - Remove COM812 rule to avoid conflicts with formatter - Add COM812 to ignore list to prevent formatter conflicts - Maintain all existing rule selections and configurations Resolves warnings about deprecated top-level linter settings and formatter conflicts with COM812 rule.
1 parent 5e5f307 commit c72fcfc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ extend-exclude = [
8585
"staticfiles/*",
8686
]
8787

88+
[tool.ruff.lint]
8889
select = [
8990
"F",
9091
"E",
@@ -101,7 +102,6 @@ select = [
101102
"FBT",
102103
"B",
103104
"A",
104-
"COM",
105105
"C4",
106106
"DTZ",
107107
"T10",
@@ -149,6 +149,7 @@ ignore = [
149149
# of types for comparison.
150150
# Deactivated because it can make the code slow:
151151
# https://github.com/astral-sh/ruff/issues/7871
152+
"COM812", # Trailing comma missing - conflicts with formatter
152153
]
153154
# The fixes in extend-unsafe-fixes will require
154155
# provide the `--unsafe-fixes` flag when fixing.

0 commit comments

Comments
 (0)