@@ -68,7 +68,7 @@ docs = [
68
68
" myst-parser" ,
69
69
" nbsphinx" ,
70
70
" pandoc" ,
71
- " sphinx<8.0 " , # 7.0 breaks readthedocs builds.
71
+ " sphinx" ,
72
72
" sphinx_autodoc_typehints" ,
73
73
" sphinx_book_theme" ,
74
74
" sphinx-copybutton" ,
@@ -97,7 +97,7 @@ version = { attr = "anomalib.__version__" }
97
97
# RUFF CONFIGURATION #
98
98
[tool .ruff ]
99
99
# Enable rules
100
- select = [
100
+ lint. select = [
101
101
" F" , # Pyflakes (`F`)
102
102
" E" , # pycodestyle error (`E`)
103
103
" W" , # pycodestyle warning (`W`)
@@ -148,7 +148,7 @@ select = [
148
148
# "LOG", # flake8-logging (`LOG`) - ERROR: Unknown rule selector: `LOG`
149
149
]
150
150
151
- ignore = [
151
+ lint. ignore = [
152
152
# pydocstyle
153
153
" D107" , # Missing docstring in __init__
154
154
@@ -178,8 +178,8 @@ ignore = [
178
178
]
179
179
180
180
# Allow autofix for all enabled rules (when `--fix`) is provided.
181
- fixable = [" ALL" ]
182
- unfixable = []
181
+ lint. fixable = [" ALL" ]
182
+ lint. unfixable = []
183
183
184
184
# Exclude a variety of commonly ignored directories.
185
185
exclude = [
@@ -209,20 +209,20 @@ exclude = [
209
209
line-length = 120
210
210
211
211
# 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]+?))$"
213
213
214
214
# Assume Python 3.10.
215
215
target-version = " py310"
216
216
217
217
# Allow imports relative to the "src" and "tests" directories.
218
218
src = [" src" , " tests" ]
219
219
220
- [tool .ruff .mccabe ]
220
+ [tool .ruff .lint . mccabe ]
221
221
# Unlike Flake8, default to a complexity level of 10.
222
222
max-complexity = 15
223
223
224
224
225
- [tool .ruff .pydocstyle ]
225
+ [tool .ruff .lint . pydocstyle ]
226
226
convention = " google"
227
227
228
228
0 commit comments