Skip to content

Commit

Permalink
Testing: Add security linting; rucio#6538
Browse files Browse the repository at this point in the history
  • Loading branch information
rdimaio committed Mar 18, 2024
1 parent 93b341f commit eac33ff
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions pyproject.toml
Expand Up @@ -42,6 +42,7 @@ exclude = [
[tool.ruff.lint]
select = [
"I", # isort
"S", # bandit
"UP", # pyupgrade
]

Expand All @@ -56,3 +57,17 @@ ignore = [
"UP032", # Use f-string instead of `format` call
"SIM210",
]

[tool.ruff.lint.per-file-ignores]
'tests/*.py' = [
'S101', # Usage of assert
'S105', # Hardcoded password string
'S106', # Hardcoded password function argument
'S108', # Hardcoded temporary file
'S110', # try-except-pass
'S113', # Probable use of requests call without timeout
'S306', # Use of insecure and deprecated function
'S311', # Non-cryptographic random usage
'S324', # Probable use of insecure hash function
'S605', # Starting a process with a shell
]

0 comments on commit eac33ff

Please sign in to comment.