Skip to content

Commit 609ab7d

Browse files
authored
Fix ruff config for ruff==2.0 (#969)
## Changes Removes warning from ruff when running `make fmt` ``` warning: The top-level linter settings are deprecated in favour of their counterparts in the `lint` section. Please update the following options in `pyproject.toml`: - 'ignore' -> 'lint.ignore' - 'flake8-tidy-imports' -> 'lint.flake8-tidy-imports' - 'isort' -> 'lint.isort' - 'per-file-ignores' -> 'lint.per-file-ignores' ```
1 parent f7dd57e commit 609ab7d

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
@@ -97,6 +97,8 @@ skip-string-normalization = true
9797
cache-dir = ".venv/ruff-cache"
9898
target-version = "py310"
9999
line-length = 120
100+
101+
[tool.ruff.lint]
100102
ignore = [
101103
# Allow boolean positional values in function calls, like `dict.get(... True)`
102104
"FBT003",
@@ -112,13 +114,13 @@ ignore = [
112114
"EM102",
113115
]
114116

115-
[tool.ruff.isort]
117+
[tool.ruff.lint.isort]
116118
known-first-party = ["databricks.labs.ucx"]
117119

118-
[tool.ruff.flake8-tidy-imports]
120+
[tool.ruff.lint.flake8-tidy-imports]
119121
ban-relative-imports = "all"
120122

121-
[tool.ruff.per-file-ignores]
123+
[tool.ruff.lint.per-file-ignores]
122124

123125
"src/databricks/labs/ucx/mixins/*" = ["S311"]
124126

0 commit comments

Comments
 (0)