Ruff
902 rules ruff@0.16.8
Complete effective rule inventory.
Rules
No enabled Ruff rules match this search.
-
D209Multi-line docstring closing quotes should be on a separate line
-
D210No whitespaces allowed surrounding docstring text
-
D211No blank lines allowed before class docstring
-
D212Multi-line docstring summary should start at the first line
-
D214Section is over-indented ("{name}")
-
D215Section underline is over-indented ("{name}")
-
D300Use triple double quotes
""" -
D301Use
r"""if any backslashes in a docstring -
D402First line should not be the function's signature
-
D414Section has no content ("{name}")
-
D418Function decorated with
@overloadshouldn't contain a docstring -
D419Docstring is empty
-
DJ001Avoid using
null=Trueon string-based fields such as{field_name} -
DJ003Avoid passing
locals()as context to arenderfunction -
DJ006Do not use
excludewithModelForm, usefieldsinstead -
DJ007Do not use
__all__withModelForm, usefieldsinstead -
DJ008Model does not define
__str__method -
DJ012Order of model's inner classes, methods, and fields does not follow the Django Style Guide: {element_type} should come before {prev_element_type}
-
DJ013@receiverdecorator must be on top of all the other decorators -
DOC102Documented parameter
{id}is not in the function's signature -
DOC202Docstring should not have a returns section because the function doesn't return anything
-
DOC403Docstring has a "Yields" section but the function doesn't yield anything
-
DOC502Raised exception is not explicitly raised:
{id} -
DTZ001datetime.datetime()called without atzinfoargument -
DTZ002datetime.datetime.today()used -
DTZ003datetime.datetime.utcnow()used -
DTZ004datetime.datetime.utcfromtimestamp()used -
DTZ005datetime.datetime.now()called without atzargument -
DTZ006datetime.datetime.fromtimestamp()called without atzargument -
DTZ007Naive datetime constructed using
datetime.datetime.strptime()without %z -
DTZ011datetime.date.today()used -
DTZ012datetime.date.fromtimestamp()used -
DTZ901Use of
datetime.datetime.{min_max}without timezone information -
E101Indentation contains mixed spaces and tabs
-
E111Indentation is not a multiple of {indent_width}
-
E112Expected an indented block
-
E113Unexpected indentation
-
E114Indentation is not a multiple of {indent_width} (comment)
-
E115Expected an indented block (comment)
-
E116Unexpected indentation (comment)