fix(config): update ruff configuration to modern format
Move ruff linting configuration from deprecated top-level settings to the new [tool.ruff.lint] section to resolve deprecation warnings.
This commit is contained in:
@@ -131,6 +131,16 @@ exclude_lines = [
|
||||
[tool.ruff]
|
||||
line-length = 88
|
||||
target-version = "py310"
|
||||
exclude = [
|
||||
".git",
|
||||
"__pycache__",
|
||||
"docs",
|
||||
"build",
|
||||
"dist",
|
||||
".venv",
|
||||
]
|
||||
|
||||
[tool.ruff.lint]
|
||||
select = [
|
||||
"E", # pycodestyle errors
|
||||
"W", # pycodestyle warnings
|
||||
@@ -144,14 +154,6 @@ ignore = [
|
||||
"E203", # whitespace before ':'
|
||||
"E501", # line too long (handled by black)
|
||||
]
|
||||
exclude = [
|
||||
".git",
|
||||
"__pycache__",
|
||||
"docs",
|
||||
"build",
|
||||
"dist",
|
||||
".venv",
|
||||
]
|
||||
|
||||
[tool.ruff.per-file-ignores]
|
||||
[tool.ruff.lint.per-file-ignores]
|
||||
"__init__.py" = ["F401"] # Allow unused imports in __init__.py
|
||||
|
||||
Reference in New Issue
Block a user