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
@@ -245,7 +245,6 @@ ignore = [
245
245
"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
246
246
"B904", # Within an `except` clause, raise exceptions with `raise ... from err` or `raise ... from None` to distinguish them from errors in exception handling
247
247
"C408", # Unnecessary `dict` call (rewrite as a literal)
248
-
"C414", # Unnecessary `list` call within `sorted()`
249
248
"FURB110", # Replace ternary `if` expression with `or` operator
250
249
"FURB113", # Use `lines.extend((" " * self.indentation + "}", "}"))` instead of repeatedly calling `lines.append()`
251
250
"FURB177", # Prefer `Path.cwd()` over `Path().resolve()` for current-directory lookups
@@ -267,12 +266,10 @@ ignore = [
267
266
"PTH109", # `os.getcwd()` should be replaced by `Path.cwd()`
268
267
"RET504", # Unnecessary assignment to `data` before `return` statement
269
268
"RUF", # Unused `noqa` directive
270
-
"S105", # Possible hardcoded password assigned to: "PASS"
271
269
"S108", # Probable insecure usage of temporary file or directory
272
270
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes
273
271
"S701", # By default, jinja2 sets `autoescape` to `False`. Consider using `autoescape=True`
274
272
"SIM102", # Use a single `if` statement instead of nested `if` statements
275
-
"SIM103", # Return the condition directly
276
273
"SIM105", # Use `contextlib.suppress(KeyError)` instead of `try`-`except`-`pass`
277
274
"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
278
275
"SIM110", # Use `return any(getattr(item, resource_field) == resource_id for item in getattr(self, RESOURCE_MAP[resource_type]))` instead of `for` loop
@@ -282,7 +279,6 @@ ignore = [
282
279
"SIM910", # Use `data.get(key)` instead of `data.get(key, None)`
283
280
"UP007", # Use X | Y for type annotations
284
281
"UP031", # Use format specifiers instead of percent format
285
-
"UP034", # Avoid extraneous parentheses
286
282
]
287
283
288
284
@@ -322,10 +318,15 @@ max-complexity = 17
322
318
"PLR0904", # Too many public methods
323
319
]
324
320
321
+
"infrahub_sdk/pytest_plugin/models.py" = [
322
+
"S105", # 'PASS' is not a password but a state
323
+
]
324
+
325
+
325
326
"tests/**/*.py" = [
326
327
"PLR2004", # Magic value used in comparison
327
328
"S101", # Use of assert detected
328
-
"S106", # Possible hardcoded password assigned to variable
329
+
"S105", # Possible hardcoded password assigned to variable
329
330
"S106", # Possible hardcoded password assigned to argument
0 commit comments