Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 27 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,10 @@ ignore = [
"B904", # Within an `except` clause, raise exceptions with `raise ... from err` or `raise ... from None` to distinguish them from errors in exception handling
"N802", # Function name should be lowercase
"PERF203", # `try`-`except` within a loop incurs performance overhead
"PLR0912", # Too many branches
"PLR0913", # Too many arguments in function definition
"PLR0917", # Too many positional arguments
"PLR2004", # Magic value used in comparison
"PLR6301", # Method could be a function, class method, or static method
"PLW0603", # Using the global statement to update `SETTINGS` is discouraged
"RUF005", # Consider `[*path, str(key)]` instead of concatenation
"RUF029", # Function is declared `async`, but doesn't `await` or use `async` features.
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes
Expand Down Expand Up @@ -303,6 +301,20 @@ max-complexity = 17
"PLR0904", # Too many public methods
]

"infrahub_sdk/node/node.py" = [
##################################################################################################
# Review and change the below later #
##################################################################################################
"PLR0912", # Too many branches
]

"infrahub_sdk/node/related_node.py" = [
##################################################################################################
# Review and change the below later #
##################################################################################################
"PLR0912", # Too many branches
]

"infrahub_sdk/pytest_plugin/models.py" = [
"S105", # 'PASS' is not a password but a state
]
Expand All @@ -314,6 +326,19 @@ max-complexity = 17
"S701", # By default, jinja2 sets `autoescape` to `False`. Consider using `autoescape=True` or the `select_autoescape` function to mitigate XSS vulnerabilities.
]

"infrahub_sdk/spec/object.py" = [
##################################################################################################
# Review and change the below later #
##################################################################################################
"PLR0912", # Too many branches
]

"infrahub_sdk/transfer/importer/json.py" = [
##################################################################################################
# Review and change the below later #
##################################################################################################
"PLR0912", # Too many branches
]

"tests/**/*.py" = [
"PLR2004", # Magic value used in comparison
Expand Down