You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pyproject.toml
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -233,7 +233,6 @@ ignore = [
233
233
"B008", # Do not perform function call `typer.Option` in argument defaults; instead, perform the call within the function, or read the default from a module-level singleton variable
234
234
"B904", # Within an `except` clause, raise exceptions with `raise ... from err` or `raise ... from None` to distinguish them from errors in exception handling
235
235
"C408", # Unnecessary `dict` call (rewrite as a literal)
236
-
"C414", # Unnecessary `list` call within `sorted()`
237
236
"FURB110", # Replace ternary `if` expression with `or` operator
238
237
"FURB113", # Use `lines.extend((" " * self.indentation + "}", "}"))` instead of repeatedly calling `lines.append()`
239
238
"FURB177", # Prefer `Path.cwd()` over `Path().resolve()` for current-directory lookups
@@ -255,12 +254,10 @@ ignore = [
255
254
"PTH109", # `os.getcwd()` should be replaced by `Path.cwd()`
256
255
"RET504", # Unnecessary assignment to `data` before `return` statement
257
256
"RUF", # Unused `noqa` directive
258
-
"S105", # Possible hardcoded password assigned to: "PASS"
259
257
"S108", # Probable insecure usage of temporary file or directory
260
258
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes
261
259
"S701", # By default, jinja2 sets `autoescape` to `False`. Consider using `autoescape=True`
262
260
"SIM102", # Use a single `if` statement instead of nested `if` statements
263
-
"SIM103", # Return the condition directly
264
261
"SIM105", # Use `contextlib.suppress(KeyError)` instead of `try`-`except`-`pass`
265
262
"SIM108", # Use ternary operator `key_str = f"{value[ALIAS_KEY]}: {key}" if ALIAS_KEY in value and value[ALIAS_KEY] else key` instead of `if`-`else`-block
266
263
"SIM110", # Use `return any(getattr(item, resource_field) == resource_id for item in getattr(self, RESOURCE_MAP[resource_type]))` instead of `for` loop
@@ -270,7 +267,6 @@ ignore = [
270
267
"SIM910", # Use `data.get(key)` instead of `data.get(key, None)`
271
268
"UP007", # Use X | Y for type annotations
272
269
"UP031", # Use format specifiers instead of percent format
273
-
"UP034", # Avoid extraneous parentheses
274
270
]
275
271
276
272
@@ -310,10 +306,15 @@ max-complexity = 17
310
306
"PLR0904", # Too many public methods
311
307
]
312
308
309
+
"infrahub_sdk/pytest_plugin/models.py" = [
310
+
"S105", # 'PASS' is not a password but a state
311
+
]
312
+
313
+
313
314
"tests/**/*.py" = [
314
315
"PLR2004", # Magic value used in comparison
315
316
"S101", # Use of assert detected
316
-
"S106", # Possible hardcoded password assigned to variable
317
+
"S105", # Possible hardcoded password assigned to variable
317
318
"S106", # Possible hardcoded password assigned to argument
0 commit comments