Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e506e2f

Browse files
committedApr 22, 2025·
extend ignores
1 parent 4e15c57 commit e506e2f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
 

‎pyproject.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,14 @@ select = [
8686
ignore = [
8787
"ANN001", # Missing type annotation for function argument `X` # TO REMOVE
8888
"ANN201", # Missing return type annotation for public function # TO REMOVE
89+
"ANN202", # Missing return type annotation for private function # TO REMOVE
8990
"ANN204", # Missing return type annotation for special method # TO REMOVE
9091
"ANN401", # Allow typing.Any
9192
"ARG002", # Unused argument # TO REMOVE
9293
"B008", # Do not perform function call `StandardScaler` in argument defaults # TO REMOVE
9394
"B020", # Loop control variable `generated_smiles` overrides iterable it iterates # TO REMOVE
95+
"B024", # `xxx` is an abstract base class, but it has no abstract methods or properties # TO REMOVE
96+
"B027", # `xxx` is an empty method in an abstract base class, but has no abstract decorator
9497
"COM812", # Trailing comma missing # TO REMOVE
9598
"DOC202", # Docstring should not have a returns section because the function doesn't return anything # TO REMOVE
9699
"D203", # 1 blank line required before class docstring # TO REMOVE
@@ -101,6 +104,7 @@ ignore = [
101104
"ERA001", # Found commented-out code # TO REMOVE
102105
"FA100", # Add `from __future__ import annotations` # TO REMOVE
103106
"FA102", # Missing `from __future__ import annotations` # TO REMOVE
107+
"FURB113", # Use `xxx.extend(...)` instead of repeatedly calling `xxx.append() # TO REMOVE
104108
"FURB171", # [*] Membership test against single-item container # TO REMOVE
105109
"FURB177", # Prefer `Path.cwd()` over `Path().resolve() # TO REMOVE
106110
"N803", # Argument name should be lowercase # TO REMOVE
@@ -109,12 +113,15 @@ ignore = [
109113
"PD011", # Use `.to_numpy()` instead of `.values` # TO REMOVE
110114
"PD901", # Avoid using the generic variable name `df` for DataFrames # TO REMOVE
111115
"PGH003", # Blanket type ignore for types
116+
"PGH004", # Use specific rule codes when using `noqa` # TO REMOVE
112117
"PERF203", # `try`-`except` within a loop incurs performance overhead # TO REMOVE
113118
"PERF401", # Use a list comprehension to create a transformed list # TO REMOVE
114119
"PIE804", # Unnecessary `dict` kwargs # TO REMOVE
115120
"PLC1901", # `rest == ""` can be simplified to `not rest` as an empty string is falsey # TO REMOVE
116121
"PLR0911", # Too many return statements (8 > 6) # TO REMOVE
122+
"PLR0912", # Too many branches (19 > 12) # TO REMOVE
117123
"PLR0913", # too-many-arguments
124+
"PLR0914", # too-many-locals # TO REMOVE
118125
"PLR2004", # Magic value used in comparison # TO REMOVE
119126
"PLC2701", # Private name import # TO REMOVE
120127
"PLR0917", # too-many-positional-arguments # TO REMOVE
@@ -133,10 +140,12 @@ ignore = [
133140
"S311", # suspicious-non-cryptographic-random-usage
134141
"SIM102", # Use a single `if` statement instead of nested `if` statements # TO REMOVE
135142
"SIM103", # Return the condition directly # TO REMOVE
143+
"SIM105", # Use `contextlib.suppress(RuntimeError)` instead of `try`-`except`-`pass` # TO REMOVE
136144
"SIM108", # Use ternary operator # TO REMOVE
137145
"SIM110", # Use return any() instead of `for` loop # TO REMOVE
138146
"SIM114", # Combine `if` branches # TO REMOVE
139147
"SIM117", # Use a single `with` statement with multiple contexts instead of nested `with` statements # TO REMOVE
148+
"SIM401", # Use `xxx` instead of an `if` block # TO REMOVE
140149
"SLF001", # Private member accessed # TO REMOVE
141150
"T201", # print found # TO REMOVE
142151
"TC001", # Move application import `xxx` into a type-checking block # TO REMOVE

0 commit comments

Comments
 (0)
Please sign in to comment.