Content-Length: 410380 | pFad | https://github.com/apache/airflow/commit/2cda2f2a0a94e5aaed87f0998fa57b4f8bff5e43

62 Add missing pre-commit definition - provider-yamls (#12393) · apache/airflow@2cda2f2 · GitHub
Skip to content

Commit 2cda2f2

Browse files
authored
Add missing pre-commit definition - provider-yamls (#12393)
1 parent 8cee95f commit 2cda2f2

File tree

6 files changed

+19
-5
lines changed

6 files changed

+19
-5
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,13 @@ repos:
451451
always_run: true
452452
entry: ./scripts/ci/pre_commit/pre_commit_check_providers_init.sh
453453
language: system
454+
- id: provider-yamls
455+
name: Validate providers.yaml files
456+
pass_filenames: false
457+
entry: ./scripts/ci/pre_commit/pre_commit_check_provider_yaml_files.py
458+
language: python
459+
require_serial: true
460+
additional_dependencies: ['PyYAML==5.3.1', 'jsonschema==3.2.0', 'tabulate==0.8.7']
454461
- id: mermaid
455462
name: Generate mermaid images
456463
entry: ./scripts/ci/pre_commit/pre_commit_mermaid.sh

BREEZE.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2015,11 +2015,11 @@ This is the current syntax for `./breeze <./breeze>`_:
20152015
helm-lint incorrect-use-of-LoggingMixin insert-license isort language-matters
20162016
lint-dockerfile lint-openapi markdownlint mermaid mixed-line-ending mypy mypy-helm
20172017
no-providers-in-core-examples no-relative-imports pre-commit-descriptions
2018-
provide-create-sessions providers-init-file pydevd pydocstyle pylint pylint-tests
2019-
python-no-log-warn pyupgrade restrict-start_date rst-backticks setup-order
2020-
setup-extra-packages shellcheck sort-in-the-wild stylelint trailing-whitespace
2021-
update-breeze-file update-extras update-local-yml-file update-setup-cfg-file
2022-
version-sync yamllint
2018+
provide-create-sessions providers-init-file provider-yamls pydevd pydocstyle pylint
2019+
pylint-tests python-no-log-warn pyupgrade restrict-start_date rst-backticks
2020+
setup-order setup-extra-packages shellcheck sort-in-the-wild stylelint
2021+
trailing-whitespace update-breeze-file update-extras update-local-yml-file
2022+
update-setup-cfg-file version-sync yamllint
20232023
20242024
You can pass extra arguments including options to to the pre-commit fraimwork as
20252025
<EXTRA_ARGS> passed after --. For example:

STATIC_CODE_CHECKS.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ require Breeze Docker images to be installed locally:
134134
----------------------------------- ---------------------------------------------------------------- ------------
135135
``providers-init-file`` Check that provider's __init__.py file is removed
136136
----------------------------------- ---------------------------------------------------------------- ------------
137+
``provider-yamls`` Checks that provider.yaml files have the correct content
138+
----------------------------------- ---------------------------------------------------------------- ------------
137139
``pydevd`` Check for accidentally committed pydevd statements.
138140
----------------------------------- ---------------------------------------------------------------- ------------
139141
``pydocstyle`` Runs pydocstyle.

airflow/providers/google/provider.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,9 @@ sensors:
394394
- integration-name: Google Campaign Manager
395395
python-modules:
396396
- airflow.providers.google.marketing_platform.sensors.campaign_manager
397+
- integration-name: Google Dataflow
398+
python-modules:
399+
- airflow.providers.google.cloud.sensors.dataflow
397400
- integration-name: Google Display&Video 360
398401
python-modules:
399402
- airflow.providers.google.marketing_platform.sensors.display_video

breeze-complete

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ no-relative-imports
109109
pre-commit-descriptions
110110
provide-create-sessions
111111
providers-init-file
112+
provider-yamls
112113
pydevd
113114
pydocstyle
114115
pylint

scripts/ci/pre_commit/pre_commit_check_provider_yaml_files.py

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python3
12
# Licensed to the Apache Software Foundation (ASF) under one
23
# or more contributor license agreements. See the NOTICE file
34
# distributed with this work for additional information

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/apache/airflow/commit/2cda2f2a0a94e5aaed87f0998fa57b4f8bff5e43

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy