Skip to content

Commit 20aaca2

Browse files
committed
recommit without precommit changes
1 parent dc03604 commit 20aaca2

File tree

9 files changed

+264
-4
lines changed

9 files changed

+264
-4
lines changed

.pre-commit-config.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1591,4 +1591,12 @@ repos:
15911591
additional_dependencies: ['rich>=12.4.4', 'ruff==0.11.13']
15921592
files: ^providers/.*/src/airflow/providers/.*version_compat.*\.py$
15931593
require_serial: true
1594+
- id: verify-signatures
1595+
name: Verify decorators of missing operator params
1596+
language: python
1597+
entry: ./scripts/ci/pre_commit/verify_signature_consistency.py
1598+
pass_filenames: false
1599+
additional_dependencies: ['rich>=12.4.4']
1600+
always_run: true
1601+
files: ^(providers/.*/)?airflow/.*/(sensors|operators)/.*\.py$
15941602
## ONLY ADD PRE-COMMITS HERE THAT REQUIRE CI IMAGE

contributing-docs/08_static_code_checks.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,8 @@ require Breeze Docker image to be built locally.
416416
+-----------------------------------------------------------+--------------------------------------------------------+---------+
417417
| validate-operators-init | No templated field logic checks in operator __init__ | |
418418
+-----------------------------------------------------------+--------------------------------------------------------+---------+
419+
| verify-signatures | Verify decorators of missing operator params | * |
420+
+-----------------------------------------------------------+--------------------------------------------------------+---------+
419421
| yamllint | Check YAML files with yamllint | |
420422
+-----------------------------------------------------------+--------------------------------------------------------+---------+
421423
| zizmor | Run zizmor to check for github workflow syntax errors | |

dev/breeze/doc/images/output_setup.svg

Lines changed: 1 addition & 1 deletion
Loading

dev/breeze/doc/images/output_static-checks.svg

Lines changed: 1 addition & 1 deletion
Loading
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
95021976bf6a2815709538bf791ccdc8
1+
87ca5394875737d94105b4ba7ae97f1f

dev/breeze/src/airflow_breeze/pre_commit_ids.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@
160160
"update-vendored-in-k8s-json-schema",
161161
"update-version",
162162
"validate-operators-init",
163+
"verify-signatures",
163164
"yamllint",
164165
"zizmor",
165166
]
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#!/usr/bin/env python
2+
#
3+
# Licensed to the Apache Software Foundation (ASF) under one
4+
# or more contributor license agreements. See the NOTICE file
5+
# distributed with this work for additional information
6+
# regarding copyright ownership. The ASF licenses this file
7+
# to you under the Apache License, Version 2.0 (the
8+
# "License"); you may not use this file except in compliance
9+
# with the License. You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from __future__ import annotations
21+
22+
import sys
23+
from pathlib import Path
24+
25+
sys.path.insert(0, str(Path(__file__).parent.resolve()))
26+
from common_precommit_utils import (
27+
initialize_breeze_precommit,
28+
run_command_via_breeze_shell,
29+
validate_cmd_result,
30+
)
31+
32+
initialize_breeze_precommit(__name__, __file__)
33+
34+
cmd_result = run_command_via_breeze_shell(
35+
["python3", "/opt/airflow/scripts/in_container/run_signature_consistency_verify.py"],
36+
backend="sqlite",
37+
skip_environment_initialization=False,
38+
)
39+
40+
validate_cmd_result(cmd_result)

0 commit comments

Comments
 (0)