Ruff
902 rules ruff@0.16.8
Complete effective rule inventory.
Rules
No enabled Ruff rules match this search.
-
RUF061Use context-manager form of
pytest.{}() -
RUF063Use
{suggestion}instead of__dict__access -
RUF064Non-octal mode
-
RUF065Unnecessary
oct()conversion when formatting with%s. Use%#oinstead of%s -
RUF066{name}is a property without areturnstatement -
RUF067__init__module should not contain any code -
RUF069Unreliable floating point equality comparison
{left} {operator} {right} -
RUF070Unnecessary assignment to
{name}beforeyield fromstatement -
RUF071os.path.commonprefix()compares strings character-by-character -
RUF072Empty
finallyclause -
RUF073%operator used on an f-string -
RUF074@{outer_decorator}should be placed after@{inner_decorator} -
RUF075Context manager does not catch exceptions
-
RUF077Receiver parameter should not have a default value
-
RUF100Unused {}
-
RUF101{original}is a redirect to{target} -
RUF102Invalid rule code in {}: {}
-
RUF103Invalid suppression comment: {msg}
-
RUF104Suppression comment without matching
#ruff:enablecomment -
RUF105noqacomment used instead ofruff: ignore -
RUF106Rule code used instead of name in suppression comment
-
RUF200Failed to parse pyproject.toml: {message}
-
RUF201Rule code used instead of name in
lint.{selector} -
S101Use of
assertdetected -
S102Use of
execdetected -
S103os.chmodsetting a permissive mask{mask:#o}on file or directory -
S104Possible binding to all interfaces
-
S105Possible hardcoded password assigned to: "{}"
-
S106Possible hardcoded password assigned to argument: "{}"
-
S107Possible hardcoded password assigned to function default: "{}"
-
S108Probable insecure usage of temporary file or directory: "{}"
-
S110try-except-passdetected, consider logging the exception -
S112try-except-continuedetected, consider logging the exception -
S113Probable use of
{module}call without timeout -
S201Use of
debug=Truein Flask app detected -
S202Uses of
tarfile.extractall() -
S301pickleand modules that wrap it can be unsafe when used to deserialize untrusted data, possible security issue -
S302Deserialization with the
marshalmodule is possibly dangerous -
S303Use of insecure MD2, MD4, MD5, or SHA1 hash function
-
S304Use of insecure cipher, replace with a known secure cipher such as AES