Enable ruff S107 rule to detect hardcoded passwords in function defaults (#170511)

This commit is contained in:
Franck Nijhof
2026-05-13 20:26:12 +02:00
committed by GitHub
parent a07034c13b
commit a4865a69b9
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -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
+1
View 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
]