@@ -68,7 +68,7 @@ docs = [
6868 " myst-parser" ,
6969 " nbsphinx" ,
7070 " pandoc" ,
71- " sphinx<8.0 " , # 7.0 breaks readthedocs builds.
71+ " sphinx" ,
7272 " sphinx_autodoc_typehints" ,
7373 " sphinx_book_theme" ,
7474 " sphinx-copybutton" ,
@@ -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.
185185exclude = [
@@ -209,20 +209,20 @@ exclude = [
209209line-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.
215215target-version = " py310"
216216
217217# Allow imports relative to the "src" and "tests" directories.
218218src = [" src" , " tests" ]
219219
220- [tool .ruff .mccabe ]
220+ [tool .ruff .lint . mccabe ]
221221# Unlike Flake8, default to a complexity level of 10.
222222max-complexity = 15
223223
224224
225- [tool .ruff .pydocstyle ]
225+ [tool .ruff .lint . pydocstyle ]
226226convention = " google"
227227
228228
0 commit comments