mirror of
https://github.com/home-assistant/core.git
synced 2026-08-24 10:13:52 -05:00
Enable ruff S107 rule to detect hardcoded passwords in function defaults (#170511)
This commit is contained in:
@@ -751,6 +751,7 @@ select = [
|
||||
"RUF100", # Unused `noqa` directive
|
||||
"RUF101", # noqa directives that use redirected rule codes
|
||||
"RUF200", # Failed to parse pyproject.toml: {message}
|
||||
"S107", # Possible hardcoded password assigned to function default
|
||||
"S102", # Use of exec detected
|
||||
"S103", # bad-file-permissions
|
||||
"S108", # hardcoded-temp-file
|
||||
|
||||
@@ -7,6 +7,7 @@ extend-ignore = [
|
||||
"B904", # Use raise from to specify exception cause
|
||||
"N815", # Variable {name} in class scope should not be mixedCase
|
||||
"RUF018", # Avoid assignment expressions in assert statements
|
||||
"S107", # Possible hardcoded password assigned to function default
|
||||
"SLF001", # Private member accessed: Tests do often test internals a lot
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user