core: add flake8-bandit (S) ruff rules to core (#27368)

Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com>
This commit is contained in:
Erick Friis
2024-10-24 15:33:41 -07:00
committed by GitHub
parent bcff458ae3
commit 265e0a164a
5 changed files with 13 additions and 11 deletions

View File

@@ -10,7 +10,8 @@ if __name__ == "__main__":
for file in files:
try:
module_name = "".join(
random.choice(string.ascii_letters) for _ in range(20)
random.choice(string.ascii_letters)
for _ in range(20) # noqa: S311
)
SourceFileLoader(module_name, file).load_module()
except Exception: