Enforce Best Practices for all your Airflow DAGs. ⭐
Project description
airflint
Enforce Best Practices for all your Airflow DAGs. ⭐
🧑🏫 Rules
- Use function-level imports instead of top-level imports[^1] (see Top level Python Code)
- Use jinja macro instead of
Variable.get
(see Airflow Variables)
[^1]: There is a PEP for Lazy Imports targeted to arrive in Python 3.12 which would supersede this rule.
based on official Best Practices
🚀 Get started
To install it from PyPI run:
pip install airflint
Then just call it like this:
pre-commit
Alternatively you can add the following repo to your pre-commit-config.yaml
:
- repo: https://github.com/feluelle/airflint
rev: v0.1.2-alpha
hooks:
- id: airflint
args: ["-a"] # Use -a for replacing inplace
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
airflint-0.2.0a0.tar.gz
(8.9 kB
view details)
Built Distribution
File details
Details for the file airflint-0.2.0a0.tar.gz
.
File metadata
- Download URL: airflint-0.2.0a0.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.9.13 Linux/5.13.0-1029-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e59e30f5f37e0f75646105621d4b3fda9a8f8d5547106393e560fa9e8b6c4b26 |
|
MD5 | 23aba86c934a55f8d4ec85898ce35633 |
|
BLAKE2b-256 | 872138506ded792f57323e050ebfe84da7bef702dca470d937c483c6624ad933 |
File details
Details for the file airflint-0.2.0a0-py3-none-any.whl
.
File metadata
- Download URL: airflint-0.2.0a0-py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.9.13 Linux/5.13.0-1029-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 891e1ede1eb086673de1b2729aa8849153aece8d77e71283f274cb38e79abc74 |
|
MD5 | 85a5880cb111372467315a1be0d4bbca |
|
BLAKE2b-256 | 254614c54b919a83524ab8e7f3b307ff82130b2230085a78f7a7398efcb801f8 |