Skip to content

Commit

Permalink
Update ruff configuration (openvinotoolkit#2269)
Browse files Browse the repository at this point in the history
Signed-off-by: Samet Akcay <samet.akcay@intel.com>
  • Loading branch information
samet-akcay authored Aug 22, 2024
1 parent 0f7ac4d commit b7188db
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ version = { attr = "anomalib.__version__" }
# RUFF CONFIGURATION #
[tool.ruff]
# Enable rules
select = [
lint.select = [
"F", # Pyflakes (`F`)
"E", # pycodestyle error (`E`)
"W", # pycodestyle warning (`W`)
Expand Down Expand Up @@ -148,7 +148,7 @@ select = [
# "LOG", # flake8-logging (`LOG`) - ERROR: Unknown rule selector: `LOG`
]

ignore = [
lint.ignore = [
# pydocstyle
"D107", # Missing docstring in __init__

Expand Down Expand Up @@ -178,8 +178,8 @@ ignore = [
]

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

# Exclude a variety of commonly ignored directories.
exclude = [
Expand Down Expand Up @@ -209,20 +209,20 @@ exclude = [
line-length = 120

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

# Assume Python 3.10.
target-version = "py310"

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

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


[tool.ruff.pydocstyle]
[tool.ruff.lint.pydocstyle]
convention = "google"


Expand Down

0 comments on commit b7188db

Please sign in to comment.