Skip to content

Commit e9670db

Browse files
authored
Merge branch 'main' into fix/exportable_center_crop
2 parents 5485295 + b7188db commit e9670db

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

docs/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
myst-parser
22
nbsphinx
33
pandoc
4-
sphinx<8.0 # 7.0 breaks readthedocs builds.
4+
sphinx
55
sphinx_autodoc_typehints
66
sphinx_book_theme
77
sphinx-copybutton

pyproject.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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.
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)