Skip to content

Commit e4512b3

Browse files
authored
MPT-17125 Fix failure for dependabot in pyproject file - incorrect flake8-import-conventions (#195)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> Closes [MPT-17125](https://softwareone.atlassian.net/browse/MPT-17125) ## Release Notes - Restructured `pyproject.toml` flake8 plugin configuration from flat top-level keys to nested sections under `[tool.ruff.lint.*]` - Updated `flake8-import-conventions.banned-from` to include both "ast" and "datetime" - Organized lint rules into dedicated nested sections: - `[tool.ruff.lint.flake8-import-conventions]` with banned-from and aliases - `[tool.ruff.lint.flake8-quotes]` with inline-quotes configuration - `[tool.ruff.lint.mccabe]` with max-complexity setting - `[tool.ruff.lint.pydocstyle]` with convention configuration - Added `[tool.ruff.lint.per-file-ignores]` to preserve per-file ignore rules for tests - Migrates configuration to structured Ruff format to resolve dependabot compatibility issues <!-- end of auto-generated comment: release notes by coderabbit.ai --> [MPT-17125]: https://softwareone.atlassian.net/browse/MPT-17125?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
2 parents 4fcb726 + 052d03f commit e4512b3

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

pyproject.toml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -229,11 +229,18 @@ ignore = [
229229
external = [ "AAA", "WPS" ]
230230

231231
# Plugin configs:
232-
flake8-import-conventions.banned-from = [ "datetime" ]
233-
flake8-import-conventions.aliases = { datetime = "dt" }
234-
flake8-quotes.inline-quotes = "double"
235-
mccabe.max-complexity = 6
236-
pydocstyle.convention = "google"
232+
[tool.ruff.lint.flake8-import-conventions]
233+
banned-from = ["ast", "datetime"]
234+
aliases = { datetime = "dt" }
235+
236+
[tool.ruff.lint.flake8-quotes]
237+
inline-quotes = "double"
238+
239+
[tool.ruff.lint.mccabe]
240+
max-complexity = 6
241+
242+
[tool.ruff.lint.pydocstyle]
243+
convention = "google"
237244

238245
[tool.ruff.lint.per-file-ignores]
239246
"tests/*.py" = [

0 commit comments

Comments
 (0)