Ruff
902 rules ruff@0.16.8
Complete effective rule inventory.
Rules
No enabled Ruff rules match this search.
-
A001Variable
{name}is shadowing a Python builtin -
A002Function argument
{name}is shadowing a Python builtin -
A003Python builtin is shadowed by class attribute
{name}from {row} -
A004Import
{name}is shadowing a Python builtin -
A005Module
{name}shadows a Python standard-library module -
A006Lambda argument
{name}is shadowing a Python builtin -
AIR001Task variable name should match the
task_id: "{task_id}" -
AIR002DAGor@dagshould have an explicitscheduleargument -
AIR003Variable.get()outside of a task -
AIR004@task.branchcan be replaced with@task.short_circuit -
AIR201Use the
.outputattribute on the task object for "{task_id}" instead ofxcom_pullin a template string -
AIR202@task-decorated function relies onmultiple_outputsinference -
AIR301{deprecated}is removed in Airflow 3.0 -
AIR302{deprecated}is moved into{provider}provider in Airflow 3.0; -
AIR303{function_name}signature is changed in Airflow 3.0 -
AIR304{function_name}()produces a value that changes at runtime; using it in a Dag or task argument causes infinite Dag version creation -
AIR311{deprecated}is removed in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version. -
AIR312{deprecated}is deprecated and moved into{provider}provider in Airflow 3.0; It still works in Airflow 3.0 but is expected to be removed in a future version. -
AIR321{deprecated}is moved in Airflow 3.1 -
ANN001Missing type annotation for function argument
{name} -
ANN002Missing type annotation for
*{name} -
ANN003Missing type annotation for
**{name} -
ANN201Missing return type annotation for public function
{name} -
ANN202Missing return type annotation for private function
{name} -
ANN204Missing return type annotation for special method
{name} -
ANN205Missing return type annotation for staticmethod
{name} -
ANN206Missing return type annotation for classmethod
{name} -
ANN401Dynamically typed expressions (typing.Any) are disallowed in
{name} -
ARG001Unused function argument:
{name} -
ARG002Unused method argument:
{name} -
ARG003Unused class method argument:
{name} -
ARG004Unused static method argument:
{name} -
ARG005Unused lambda argument:
{name} -
ASYNC100A
with {method_name}(...):context does not contain anyawaitstatements. This makes it pointless, as the timeout can only be triggered by a checkpoint. -
ASYNC105Call to
{method_name}is not immediately awaited -
ASYNC109Async function definition with a
timeoutparameter -
ASYNC110Use
{module}.Eventinstead of awaiting{module}.sleepin awhileloop -
ASYNC115Use
{module}.lowlevel.checkpoint()instead of{module}.sleep(0) -
ASYNC116{module}.sleep()with >24 hour interval should usually be{module}.sleep_forever() -
ASYNC119Yield in context manager in async generator may not trigger cleanup