Skip to content

Verify decorators parameter in __init__.pyi matches operator #51048

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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 @@ -1600,4 +1600,12 @@ repos:
types: [python]
files: ^providers/.*/src/airflow/providers/.*\.py$
require_serial: true
- id: verify-signatures
name: Verify decorators of missing operator params
language: python
entry: ./scripts/ci/pre_commit/verify_signature_consistency.py
pass_filenames: false
additional_dependencies: ['rich>=12.4.4']
always_run: true
files: ^(providers/.*/)?airflow/.*/(sensors|operators)/.*\.py$
## ONLY ADD PRE-COMMITS HERE THAT REQUIRE CI IMAGE
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 @@ -419,6 +419,8 @@ require Breeze Docker image to be built locally.
+-----------------------------------------------------------+--------------------------------------------------------+---------+
| validate-operators-init | No templated field logic checks in operator __init__ | |
+-----------------------------------------------------------+--------------------------------------------------------+---------+
| verify-signatures | Verify decorators of missing operator params | * |
+-----------------------------------------------------------+--------------------------------------------------------+---------+
| yamllint | Check YAML files with yamllint | |
+-----------------------------------------------------------+--------------------------------------------------------+---------+
| zizmor | Run zizmor to check for github workflow syntax errors | |
Expand Down
4 changes: 2 additions & 2 deletions dev/breeze/doc/images/output-commands.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion dev/breeze/doc/images/output_setup.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion dev/breeze/doc/images/output_setup.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ba00ab3fb2ed5a777684878c28b3ce65
08c78d9dddd037a2ade6b751c5a22ff9
Original file line number Diff line number Diff line change
@@ -1 +1 @@
b6bec540dff082eb353c54319297ed94
a737e824010a74c63551f66433e0e7af
Loading
Loading