Skip to content

Commit b7188db

Browse files
authored
Update ruff configuration (#2269)
Signed-off-by: Samet Akcay <samet.akcay@intel.com>
1 parent 0f7ac4d commit b7188db

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pyproject.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ version = { attr = "anomalib.__version__" }
9797
# RUFF CONFIGURATION #
9898
[tool.ruff]
9999
# Enable rules
100-
select = [
100+
lint.select = [
101101
"F", # Pyflakes (`F`)
102102
"E", # pycodestyle error (`E`)
103103
"W", # pycodestyle warning (`W`)
@@ -148,7 +148,7 @@ select = [
148148
# "LOG", # flake8-logging (`LOG`) - ERROR: Unknown rule selector: `LOG`
149149
]
150150

151-
ignore = [
151+
lint.ignore = [
152152
# pydocstyle
153153
"D107", # Missing docstring in __init__
154154

@@ -178,8 +178,8 @@ ignore = [
178178
]
179179

180180
# Allow autofix for all enabled rules (when `--fix`) is provided.
181-
fixable = ["ALL"]
182-
unfixable = []
181+
lint.fixable = ["ALL"]
182+
lint.unfixable = []
183183

184184
# Exclude a variety of commonly ignored directories.
185185
exclude = [
@@ -209,20 +209,20 @@ exclude = [
209209
line-length = 120
210210

211211
# Allow unused variables when underscore-prefixed.
212-
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
212+
lint.dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
213213

214214
# Assume Python 3.10.
215215
target-version = "py310"
216216

217217
# Allow imports relative to the "src" and "tests" directories.
218218
src = ["src", "tests"]
219219

220-
[tool.ruff.mccabe]
220+
[tool.ruff.lint.mccabe]
221221
# Unlike Flake8, default to a complexity level of 10.
222222
max-complexity = 15
223223

224224

225-
[tool.ruff.pydocstyle]
225+
[tool.ruff.lint.pydocstyle]
226226
convention = "google"
227227

228228

0 commit comments

Comments
 (0)