Metadata-Version: 2.1
Name: flake8-airflow
Version: 0.1.0
Summary: Flake8 extension for Apache Airflow static analysis rules.
Author: Bradley Bonitatibus
Author-email: bradleybonitatibus@gmail.com
Keywords: airflow,flake8,static-analysis
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Requires-Python: ~=3.9
Description-Content-Type: text/markdown
License-File: LICENSE

# `flake8-airflow`

An opinioned `flake8` plugin for Apache Airflow.


## Rules

The following is a table of rules, what they mean, and why they exist.

| Rule Name | Description | Purpose |
| --------- | ----------- | ------- |
| `AA101`   | Use of `SubDagOperator` | Airflow has deprecated `SubDagOperator` since 2.0 and should not be used |
| `AA102`   | Use of `BashOperator` | Airflow does not escape strings sent to the `bash_command` <sup>[1](https://registry.astronomer.io/providers/apache-airflow/modules/bashoperator)</sup> and is a potential security risk |
| `AA103`   | Missing `retries` default argument in `DAG` constructor | Retries improve DAG resiliency  |
