Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bradleybonitatibus/flake8-airflow
A flake8 plugin for linting Apache Airflow code
https://github.com/bradleybonitatibus/flake8-airflow
apache-airflow flake8 flake8-extension python
Last synced: 27 days ago
JSON representation
A flake8 plugin for linting Apache Airflow code
- Host: GitHub
- URL: https://github.com/bradleybonitatibus/flake8-airflow
- Owner: bradleybonitatibus
- License: apache-2.0
- Created: 2022-11-14T23:35:50.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-01T11:02:56.000Z (almost 2 years ago)
- Last Synced: 2024-04-27T08:43:00.899Z (9 months ago)
- Topics: apache-airflow, flake8, flake8-extension, python
- Language: Python
- Homepage:
- Size: 49.8 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# `flake8-airflow`
[![CI](https://github.com/bradleybonitatibus/flake8-airflow/actions/workflows/ci.yaml/badge.svg)](https://github.com/bradleybonitatibus/flake8-airflow/actions/workflows/ci.yaml)
[![PyPI version](https://badge.fury.io/py/flake8-airflow.svg)](https://badge.fury.io/py/flake8-airflow)
[![OpenSSF Best Practices](https://bestpractices.coreinfrastructure.org/projects/6705/badge)](https://bestpractices.coreinfrastructure.org/projects/6705)An opinioned `flake8` plugin with Apache Airflow rules.
## Installing
You can install this extension from `pypi` using
```
pip install flake8-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` [1](https://registry.astronomer.io/providers/apache-airflow/modules/bashoperator) and is a potential security risk |
| `AA103` | Missing `retries` default argument in `DAG` constructor | Retries improve DAG resiliency |