Skip to content

Commit

Permalink
Add specific exceptions to bad-dunder-names
Browse files Browse the repository at this point in the history
  • Loading branch information
berland committed Dec 17, 2024
1 parent 56ef89b commit 9b35a91
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@ ignore = [
"PLW1641", # eq-without-hash
"PLR0904", # too-many-public-methods
"PLR1702", # too-many-nested-blocks
"PLW3201", # bad-dunder-method-name
"UP032", # f-string
"UP031", # printf-string-formatting
]
Expand All @@ -230,8 +229,14 @@ allowed-confusables = ["–"]
"src/ert/dark_storage/json_schema/__init__.py" = ["F401"]
"src/ert/dark_storage/*" = ["RUF029"] # unused-async


[tool.ruff.lint.pylint]
max-args = 20
allow-dunder-method-names = [
"__default_token__",
"__get_pydantic_core_schema__",
"__get_pydantic_json_schema__",
]

[tool.ruff.lint.flake8-bugbear]
extend-immutable-calls = [
Expand Down

0 comments on commit 9b35a91

Please sign in to comment.