mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-24 00:34:53 +08:00
Various ruff fixes (#12821)
This commit is contained in:
@ -112,11 +112,14 @@ lint.ignore = [
|
||||
"EXE001", # Shebang is present but file is not executable -- DO NOT FIX
|
||||
"G004", # Logging statement uses f-string
|
||||
"ISC001", # Conflicts with ruff format -- DO NOT FIX
|
||||
"PLC0415", # import-outside-top-level -- DO NOT FIX
|
||||
"PLC1901", # `{}` can be simplified to `{}` as an empty string is falsey
|
||||
"PLW060", # Using global for `{name}` but no assignment is done -- DO NOT FIX
|
||||
"PLW1641", # eq-without-hash
|
||||
"PLW2901", # PLW2901: Redefined loop variable -- FIX ME
|
||||
"PT011", # `pytest.raises(Exception)` is too broad, set the `match` parameter or use a more specific exception
|
||||
"PT018", # Assertion should be broken down into multiple parts
|
||||
"PT028", # pytest-parameter-with-default-argument
|
||||
"S101", # Use of `assert` detected -- DO NOT FIX
|
||||
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes -- FIX ME
|
||||
"SIM905", # Consider using a list literal instead of `str.split` -- DO NOT FIX
|
||||
|
Reference in New Issue
Block a user