Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,14 @@ repos:
# libcst doesn't have source wheels for all PY except PY3.12, excluding it
additional_dependencies: ['libcst>=1.8.1']
files: ^(providers/.*/)?airflow/.*/(sensors|operators)/.*\.py$
- id: check-provider-exclusions-python-version
name: Check Provider Python Version Exclusions
entry: ./scripts/ci/pre_commit/check_exclusion_of_provider_python_version.py
language: python
pass_filenames: true
require_serial: true
files: ^(providers/.*/(pyproject.toml|provider.yaml)|dev/breeze/src/airflow_breeze/global_constants.py)$
additional_dependencies: ['pyyaml>=6.0.2', 'tomli>=2.0.1', "packaging>=25"]
- repo: https://github.com/asottile/blacken-docs
rev: 1.19.1
hooks:
Expand Down
2 changes: 2 additions & 0 deletions contributing-docs/08_static_code_checks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@ require Breeze Docker image to be built locally.
+-----------------------------------------------------------+--------------------------------------------------------+---------+
| check-provider-docs-valid | Validate provider doc files | |
+-----------------------------------------------------------+--------------------------------------------------------+---------+
| check-provider-exclusions-python-version | Check Provider Python Version Exclusions | |
+-----------------------------------------------------------+--------------------------------------------------------+---------+
| check-provider-yaml-valid | Validate provider.yaml files | * |
+-----------------------------------------------------------+--------------------------------------------------------+---------+
| check-providers-subpackages-init-file-exist | Provider subpackage init files are there | |
Expand Down
Loading