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]
|
[tool.ruff]
|
||||||
line-length = 88
|
line-length = 88
|
||||||
target-version = "py310"
|
target-version = "py310"
|
||||||
|
exclude = [
|
||||||
|
".git",
|
||||||
|
"__pycache__",
|
||||||
|
"docs",
|
||||||
|
"build",
|
||||||
|
"dist",
|
||||||
|
".venv",
|
||||||
|
]
|
||||||
|
|
||||||
|
[tool.ruff.lint]
|
||||||
select = [
|
select = [
|
||||||
"E", # pycodestyle errors
|
"E", # pycodestyle errors
|
||||||
"W", # pycodestyle warnings
|
"W", # pycodestyle warnings
|
||||||
@@ -144,14 +154,6 @@ ignore = [
|
|||||||
"E203", # whitespace before ':'
|
"E203", # whitespace before ':'
|
||||||
"E501", # line too long (handled by black)
|
"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
|
"__init__.py" = ["F401"] # Allow unused imports in __init__.py
|
||||||
|
|||||||
Reference in New Issue
Block a user