This is an automated email from the ASF dual-hosted git repository. potiuk pushed a commit to branch v2-3-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 408387e630a33759e07aaa3c30bc7de164919616 Author: Jarek Potiuk <[email protected]> AuthorDate: Wed Jun 29 12:39:47 2022 +0200 Fix selective checks to work for non-main-branch --- .github/workflows/ci.yml | 5 +- .pre-commit-config.yaml | 8 +- STATIC_CODE_CHECKS.rst | 2 +- .../src/airflow_breeze/params/doc_build_params.py | 4 + dev/breeze/src/airflow_breeze/pre_commit_ids.py | 4 - .../src/airflow_breeze/utils/selective_checks.py | 10 + dev/breeze/tests/test_selective_checks.py | 14 +- docs/apache-airflow-providers-amazon/index.rst | 1 - docs/build_docs.py | 9 +- docs/conf.py | 2 + docs/exts/docs_build/lint_checks.py | 8 +- images/breeze/output-commands-hash.txt | 2 +- images/breeze/output-static-checks.svg | 228 ++++++++++----------- ...ty.py => pre_commit_check_2_2_compatibility.py} | 0 tests/system/providers/elasticsearch/__init__.py | 16 -- .../elasticsearch/example_elasticsearch_query.py | 66 ------ 16 files changed, 155 insertions(+), 224 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 09ab691a49..0ff8fc2b3d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -167,6 +167,7 @@ jobs: needs-api-codegen: ${{ steps.selective-checks.outputs.needs-api-codegen }} default-branch: ${{ steps.selective-checks.outputs.default-branch }} docs-filter: ${{ steps.selective-checks.outputs.docs-filter }} + skip-pre-commits: ${{ steps.selective-checks.outputs.skip-pre-commits }} sourceHeadRepo: ${{ steps.source-run-info.outputs.sourceHeadRepo }} pullRequestNumber: ${{ steps.source-run-info.outputs.pullRequestNumber }} pullRequestLabels: ${{ steps.source-run-info.outputs.pullRequestLabels }} @@ -634,7 +635,7 @@ ${{ hashFiles('.pre-commit-config.yaml') }}" run: breeze static-checks --all-files --show-diff-on-failure --color always env: VERBOSE: "false" - SKIP: "identity" + SKIP: ${{ needs.build-info.outputs.skip-pre-commits }} COLUMNS: "250" - name: "Fix ownership" run: breeze fix-ownership @@ -691,7 +692,7 @@ ${{ hashFiles('.pre-commit-config.yaml') }}" env: VERBOSE: "false" SKIP_IMAGE_PRE_COMMITS: "true" - SKIP: "identity" + SKIP: ${{ needs.build-info.outputs.skip-pre-commits }} COLUMNS: "250" - name: "Fix ownership" run: breeze fix-ownership diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d91d2bf332..051cdd237c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -242,7 +242,7 @@ repos: name: Run pydocstyle args: - --convention=pep257 - - --add-ignore=D100,D102,D103,D104,D105,D107,D205,D400,D401 + - --add-ignore=D100,D102,D103,D104,D105,D107,D202,D205,D400,D401 exclude: | (?x) ^tests/.*\.py$| @@ -334,9 +334,9 @@ repos: entry: ./scripts/ci/pre_commit/pre_commit_check_setup_extra_packages_ref.py additional_dependencies: ['rich>=12.4.4'] # This check might be removed when min-airflow-version in providers is 2.2 - - id: check-airflow-2-1-compatibility - name: Check that providers are 2.1 compatible. - entry: ./scripts/ci/pre_commit/pre_commit_check_2_1_compatibility.py + - id: check-airflow-2-2-compatibility + name: Check that providers are 2.2 compatible. + entry: ./scripts/ci/pre_commit/pre_commit_check_2_2_compatibility.py language: python pass_filenames: true files: ^airflow/providers/.*\.py$ diff --git a/STATIC_CODE_CHECKS.rst b/STATIC_CODE_CHECKS.rst index 00d533250b..b5b5e37ecb 100644 --- a/STATIC_CODE_CHECKS.rst +++ b/STATIC_CODE_CHECKS.rst @@ -136,7 +136,7 @@ require Breeze Docker image to be build locally. +--------------------------------------------------------+------------------------------------------------------------------+---------+ | blacken-docs | Run black on python code blocks in documentation files | | +--------------------------------------------------------+------------------------------------------------------------------+---------+ -| check-airflow-2-1-compatibility | Check that providers are 2.1 compatible. | | +| check-airflow-2-2-compatibility | Check that providers are 2.2 compatible. | | +--------------------------------------------------------+------------------------------------------------------------------+---------+ | check-airflow-config-yaml-consistent | Checks for consistency between config.yml and default_config.cfg | | +--------------------------------------------------------+------------------------------------------------------------------+---------+ diff --git a/dev/breeze/src/airflow_breeze/params/doc_build_params.py b/dev/breeze/src/airflow_breeze/params/doc_build_params.py index 25350db93b..4ac4c3ebca 100644 --- a/dev/breeze/src/airflow_breeze/params/doc_build_params.py +++ b/dev/breeze/src/airflow_breeze/params/doc_build_params.py @@ -19,6 +19,8 @@ import os from dataclasses import dataclass from typing import List, Tuple +from airflow_breeze.branch_defaults import AIRFLOW_BRANCH + @dataclass class DocBuildParams: @@ -38,6 +40,8 @@ class DocBuildParams: doc_args.append("--spellcheck-only") if self.for_production: doc_args.append("--for-production") + if AIRFLOW_BRANCH != "main": + doc_args.append("--disable-provider-checks") if self.package_filter and len(self.package_filter) > 0: for single_filter in self.package_filter: doc_args.extend(["--package-filter", single_filter]) diff --git a/dev/breeze/src/airflow_breeze/pre_commit_ids.py b/dev/breeze/src/airflow_breeze/pre_commit_ids.py index db839f0712..a5f998ddef 100644 --- a/dev/breeze/src/airflow_breeze/pre_commit_ids.py +++ b/dev/breeze/src/airflow_breeze/pre_commit_ids.py @@ -29,7 +29,6 @@ PRE_COMMIT_LIST = [ 'check-airflow-config-yaml-consistent', 'check-airflow-providers-have-extras', 'check-apache-license-rat', - 'check-base-operator-partial-arguments', 'check-base-operator-usage', 'check-boring-cyborg-configuration', 'check-breeze-top-dependencies-limited', @@ -37,7 +36,6 @@ PRE_COMMIT_LIST = [ 'check-changelog-has-no-duplicates', 'check-daysago-import-from-utils', 'check-docstring-param-types', - 'check-example-dags-urls', 'check-executables-have-shebangs', 'check-extra-packages-references', 'check-extras-order', @@ -61,10 +59,8 @@ PRE_COMMIT_LIST = [ 'check-setup-order', 'check-start-date-not-used-in-defaults', 'check-system-tests-present', - 'check-system-tests-tocs', 'check-xml', 'codespell', - 'create-missing-init-py-files-tests', 'debug-statements', 'detect-private-key', 'doctoc', diff --git a/dev/breeze/src/airflow_breeze/utils/selective_checks.py b/dev/breeze/src/airflow_breeze/utils/selective_checks.py index 2a57cac5e0..5e1acfbb85 100644 --- a/dev/breeze/src/airflow_breeze/utils/selective_checks.py +++ b/dev/breeze/src/airflow_breeze/utils/selective_checks.py @@ -482,6 +482,12 @@ class SelectiveChecks: f"is {self._default_branch} and not main[/]" ) current_test_types.remove("Providers") + if "Integration" in current_test_types: + get_console().print( + "[warning]Removing 'Integration' because the target branch " + f"is {self._default_branch} and not main[/]" + ) + current_test_types.remove("Integration") return " ".join(sorted(current_test_types)) @cached_property @@ -501,3 +507,7 @@ class SelectiveChecks: if self._default_branch == 'main' else "--package-filter apache-airflow --package-filter docker-stack" ) + + @cached_property + def skip_pre_commits(self) -> str: + return "identity" if self._default_branch == "main" else "identity,check-airflow-2-2-compatibility" diff --git a/dev/breeze/tests/test_selective_checks.py b/dev/breeze/tests/test_selective_checks.py index 196aacf566..b4fd87f15f 100644 --- a/dev/breeze/tests/test_selective_checks.py +++ b/dev/breeze/tests/test_selective_checks.py @@ -276,9 +276,10 @@ def test_expected_output_pull_request_main( "run-tests": "true", "docs-build": "true", "upgrade-to-newer-dependencies": "false", - "test-types": "API Always CLI Core Integration Other WWW", + "test-types": "API Always CLI Core Other WWW", }, - id="Everything should run except Providers when full tests are needed for non-main branch", + id="Everything should run except Providers and Integration " + "when full tests are needed for non-main branch", ) ), ], @@ -372,9 +373,10 @@ def test_expected_output_full_tests_needed( "docs-build": "true", "run-kubernetes-tests": "false", "upgrade-to-newer-dependencies": "false", - "test-types": "API Always CLI Core Integration Other WWW", + "test-types": "API Always CLI Core Other WWW", }, - id="All tests except providers should run if core file changed in non-main branch", + id="All tests except providers and Integration should " + "run if core file changed in non-main branch", ), ], ) @@ -493,9 +495,9 @@ def test_expected_output_pull_request_target( "run-tests": "true", "docs-build": "true", "upgrade-to-newer-dependencies": "true", - "test-types": "API Always CLI Core Integration Other WWW", + "test-types": "API Always CLI Core Other WWW", }, - id="All tests except Providers and Helm run on push" + id="All tests except Providers Integration and Helm run on push" " even if unimportant file changed in non-main branch", ), pytest.param( diff --git a/docs/apache-airflow-providers-amazon/index.rst b/docs/apache-airflow-providers-amazon/index.rst index d1fd9c6300..e0ed0d74f5 100644 --- a/docs/apache-airflow-providers-amazon/index.rst +++ b/docs/apache-airflow-providers-amazon/index.rst @@ -46,7 +46,6 @@ Content :maxdepth: 1 :caption: Resources - Example DAGs <https://github.com/apache/airflow/tree/main/airflow/providers/amazon/aws/example_dags> PyPI Repository <https://pypi.org/project/apache-airflow-providers-amazon/> Installing from sources <installing-providers-from-sources> diff --git a/docs/build_docs.py b/docs/build_docs.py index 9f4217bd10..5d8812ea3a 100755 --- a/docs/build_docs.py +++ b/docs/build_docs.py @@ -107,6 +107,12 @@ def _get_parser(): parser.add_argument( '--disable-checks', dest='disable_checks', action='store_true', help='Disables extra checks' ) + parser.add_argument( + '--disable-provider-checks', + dest='disable_provider_checks', + action='store_true', + help='Disables extra checks for providers', + ) parser.add_argument( '--one-pass-only', dest='one_pass_only', @@ -441,6 +447,7 @@ def main(): available_packages = get_available_packages() docs_only = args.docs_only spellcheck_only = args.spellcheck_only + disable_provider_checks = args.disable_provider_checks disable_checks = args.disable_checks package_filters = args.package_filter for_production = args.for_production @@ -531,7 +538,7 @@ def main(): ) if not disable_checks: - general_errors = lint_checks.run_all_check() + general_errors = lint_checks.run_all_check(disable_provider_checks=disable_provider_checks) if general_errors: all_build_errors[None] = general_errors diff --git a/docs/conf.py b/docs/conf.py index 47334381fc..a33a5cbb43 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -694,6 +694,8 @@ autoapi_ignore = [ ] if PACKAGE_NAME == 'apache-airflow': autoapi_ignore.append('*/airflow/providers/*') +elif PACKAGE_NAME == 'docker-stack': + autoapi_ignore.append('*/airflow/providers/*') else: autoapi_ignore.append('*/airflow/providers/cncf/kubernetes/backcompat/*') # Keep the AutoAPI generated files on the filesystem after the run. diff --git a/docs/exts/docs_build/lint_checks.py b/docs/exts/docs_build/lint_checks.py index d80419d7eb..3d60754ccf 100644 --- a/docs/exts/docs_build/lint_checks.py +++ b/docs/exts/docs_build/lint_checks.py @@ -322,13 +322,13 @@ def check_pypi_repository_in_provider_tocs() -> List[DocBuildError]: return build_errors -def run_all_check() -> List[DocBuildError]: +def run_all_check(disable_provider_checks: bool = False) -> List[DocBuildError]: """Run all checks from this module""" general_errors = [] general_errors.extend(check_guide_links_in_operator_descriptions()) general_errors.extend(check_enforce_code_block()) general_errors.extend(check_exampleinclude_for_example_dags()) - general_errors.extend(check_example_dags_in_provider_tocs()) - general_errors.extend(check_pypi_repository_in_provider_tocs()) - + if not disable_provider_checks: + general_errors.extend(check_pypi_repository_in_provider_tocs()) + general_errors.extend(check_example_dags_in_provider_tocs()) return general_errors diff --git a/images/breeze/output-commands-hash.txt b/images/breeze/output-commands-hash.txt index 217a9debb9..b0f81d4d3d 100644 --- a/images/breeze/output-commands-hash.txt +++ b/images/breeze/output-commands-hash.txt @@ -28,7 +28,7 @@ self-upgrade:b5437c0a1a91533a11ee9d0a9692369c setup-autocomplete:355b72dee171c2fcba46fc90ac7c97b0 shell:ab7955da71048b3a695485c152d06786 start-airflow:30caa077555bef44e5bdf76dfeca092c -static-checks:96a0bcc981be838ae32f53e804157ee5 +static-checks:69bbef8c50c452faf58403d7a06f34b6 stop:8ebd8a42f1003495d37b884de5ac7ce6 tests:ae8d62b505ff8f79bddc202fe9d575e3 verify-image:a6b3c70957aea96a5d4d261f23359a2d diff --git a/images/breeze/output-static-checks.svg b/images/breeze/output-static-checks.svg index ae64d0be23..75126bd608 100644 --- a/images/breeze/output-static-checks.svg +++ b/images/breeze/output-static-checks.svg @@ -1,4 +1,4 @@ -<svg class="rich-terminal" viewBox="0 0 1482 1270.0" xmlns="http://www.w3.org/2000/svg"> +<svg class="rich-terminal" viewBox="0 0 1482 1221.1999999999998" xmlns="http://www.w3.org/2000/svg"> <!-- Generated with Rich https://www.textualize.io --> <style> @@ -19,241 +19,233 @@ font-weight: 700; } - .terminal-1143647577-matrix { + .terminal-751396731-matrix { font-family: Fira Code, monospace; font-size: 20px; line-height: 24.4px; font-variant-east-asian: full-width; } - .terminal-1143647577-title { + .terminal-751396731-title { font-size: 18px; font-weight: bold; font-family: arial; } - .terminal-1143647577-r1 { fill: #c5c8c6;font-weight: bold } -.terminal-1143647577-r2 { fill: #c5c8c6 } -.terminal-1143647577-r3 { fill: #d0b344;font-weight: bold } -.terminal-1143647577-r4 { fill: #868887 } -.terminal-1143647577-r5 { fill: #68a0b3;font-weight: bold } -.terminal-1143647577-r6 { fill: #98a84b;font-weight: bold } -.terminal-1143647577-r7 { fill: #8d7b39 } + .terminal-751396731-r1 { fill: #c5c8c6;font-weight: bold } +.terminal-751396731-r2 { fill: #c5c8c6 } +.terminal-751396731-r3 { fill: #d0b344;font-weight: bold } +.terminal-751396731-r4 { fill: #868887 } +.terminal-751396731-r5 { fill: #68a0b3;font-weight: bold } +.terminal-751396731-r6 { fill: #98a84b;font-weight: bold } +.terminal-751396731-r7 { fill: #8d7b39 } </style> <defs> - <clipPath id="terminal-1143647577-clip-terminal"> - <rect x="0" y="0" width="1463.0" height="1219.0" /> + <clipPath id="terminal-751396731-clip-terminal"> + <rect x="0" y="0" width="1463.0" height="1170.1999999999998" /> </clipPath> - <clipPath id="terminal-1143647577-line-0"> + <clipPath id="terminal-751396731-line-0"> <rect x="0" y="1.5" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-1"> +<clipPath id="terminal-751396731-line-1"> <rect x="0" y="25.9" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-2"> +<clipPath id="terminal-751396731-line-2"> <rect x="0" y="50.3" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-3"> +<clipPath id="terminal-751396731-line-3"> <rect x="0" y="74.7" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-4"> +<clipPath id="terminal-751396731-line-4"> <rect x="0" y="99.1" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-5"> +<clipPath id="terminal-751396731-line-5"> <rect x="0" y="123.5" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-6"> +<clipPath id="terminal-751396731-line-6"> <rect x="0" y="147.9" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-7"> +<clipPath id="terminal-751396731-line-7"> <rect x="0" y="172.3" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-8"> +<clipPath id="terminal-751396731-line-8"> <rect x="0" y="196.7" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-9"> +<clipPath id="terminal-751396731-line-9"> <rect x="0" y="221.1" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-10"> +<clipPath id="terminal-751396731-line-10"> <rect x="0" y="245.5" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-11"> +<clipPath id="terminal-751396731-line-11"> <rect x="0" y="269.9" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-12"> +<clipPath id="terminal-751396731-line-12"> <rect x="0" y="294.3" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-13"> +<clipPath id="terminal-751396731-line-13"> <rect x="0" y="318.7" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-14"> +<clipPath id="terminal-751396731-line-14"> <rect x="0" y="343.1" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-15"> +<clipPath id="terminal-751396731-line-15"> <rect x="0" y="367.5" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-16"> +<clipPath id="terminal-751396731-line-16"> <rect x="0" y="391.9" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-17"> +<clipPath id="terminal-751396731-line-17"> <rect x="0" y="416.3" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-18"> +<clipPath id="terminal-751396731-line-18"> <rect x="0" y="440.7" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-19"> +<clipPath id="terminal-751396731-line-19"> <rect x="0" y="465.1" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-20"> +<clipPath id="terminal-751396731-line-20"> <rect x="0" y="489.5" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-21"> +<clipPath id="terminal-751396731-line-21"> <rect x="0" y="513.9" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-22"> +<clipPath id="terminal-751396731-line-22"> <rect x="0" y="538.3" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-23"> +<clipPath id="terminal-751396731-line-23"> <rect x="0" y="562.7" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-24"> +<clipPath id="terminal-751396731-line-24"> <rect x="0" y="587.1" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-25"> +<clipPath id="terminal-751396731-line-25"> <rect x="0" y="611.5" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-26"> +<clipPath id="terminal-751396731-line-26"> <rect x="0" y="635.9" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-27"> +<clipPath id="terminal-751396731-line-27"> <rect x="0" y="660.3" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-28"> +<clipPath id="terminal-751396731-line-28"> <rect x="0" y="684.7" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-29"> +<clipPath id="terminal-751396731-line-29"> <rect x="0" y="709.1" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-30"> +<clipPath id="terminal-751396731-line-30"> <rect x="0" y="733.5" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-31"> +<clipPath id="terminal-751396731-line-31"> <rect x="0" y="757.9" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-32"> +<clipPath id="terminal-751396731-line-32"> <rect x="0" y="782.3" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-33"> +<clipPath id="terminal-751396731-line-33"> <rect x="0" y="806.7" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-34"> +<clipPath id="terminal-751396731-line-34"> <rect x="0" y="831.1" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-35"> +<clipPath id="terminal-751396731-line-35"> <rect x="0" y="855.5" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-36"> +<clipPath id="terminal-751396731-line-36"> <rect x="0" y="879.9" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-37"> +<clipPath id="terminal-751396731-line-37"> <rect x="0" y="904.3" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-38"> +<clipPath id="terminal-751396731-line-38"> <rect x="0" y="928.7" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-39"> +<clipPath id="terminal-751396731-line-39"> <rect x="0" y="953.1" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-40"> +<clipPath id="terminal-751396731-line-40"> <rect x="0" y="977.5" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-41"> +<clipPath id="terminal-751396731-line-41"> <rect x="0" y="1001.9" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-42"> +<clipPath id="terminal-751396731-line-42"> <rect x="0" y="1026.3" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-43"> +<clipPath id="terminal-751396731-line-43"> <rect x="0" y="1050.7" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-44"> +<clipPath id="terminal-751396731-line-44"> <rect x="0" y="1075.1" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-45"> +<clipPath id="terminal-751396731-line-45"> <rect x="0" y="1099.5" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-46"> +<clipPath id="terminal-751396731-line-46"> <rect x="0" y="1123.9" width="1464" height="24.65"/> </clipPath> -<clipPath id="terminal-1143647577-line-47"> - <rect x="0" y="1148.3" width="1464" height="24.65"/> - </clipPath> -<clipPath id="terminal-1143647577-line-48"> - <rect x="0" y="1172.7" width="1464" height="24.65"/> - </clipPath> </defs> - <rect fill="#292929" stroke="rgba(255,255,255,0.35)" stroke-width="1" x="1" y="1" width="1480" height="1268" rx="8"/><text class="terminal-1143647577-title" fill="#c5c8c6" text-anchor="middle" x="740" y="27">Command: static-checks</text> + <rect fill="#292929" stroke="rgba(255,255,255,0.35)" stroke-width="1" x="1" y="1" width="1480" height="1219.2" rx="8"/><text class="terminal-751396731-title" fill="#c5c8c6" text-anchor="middle" x="740" y="27">Command: static-checks</text> <g transform="translate(26,22)"> <circle cx="0" cy="0" r="7" fill="#ff5f57"/> <circle cx="22" cy="0" r="7" fill="#febc2e"/> <circle cx="44" cy="0" r="7" fill="#28c840"/> </g> - <g transform="translate(9, 41)" clip-path="url(#terminal-1143647577-clip-terminal)"> + <g transform="translate(9, 41)" clip-path="url(#terminal-751396731-clip-terminal)"> - <g class="terminal-1143647577-matrix"> - <text class="terminal-1143647577-r2" x="1464" y="20" textLength="12.2" clip-path="url(#terminal-1143647577-line-0)"> -</text><text class="terminal-1143647577-r3" x="12.2" y="44.4" textLength="85.4" clip-path="url(#terminal-1143647577-line-1)">Usage: </text><text class="terminal-1143647577-r1" x="97.6" y="44.4" textLength="610" clip-path="url(#terminal-1143647577-line-1)">breeze static-checks [OPTIONS] [PRECOMMIT_ARGS]...</text><text class="terminal-1143647577-r2" x="1464" y="44.4" textLength="12.2" clip-path="url(#terminal-1143647577-line-1)"> -</text><text class="terminal-1143647577-r2" x="1464" y="68.8" textLength="12.2" clip-path="url(#terminal-1143647577-line-2)"> -</text><text class="terminal-1143647577-r2" x="12.2" y="93.2" textLength="219.6" clip-path="url(#terminal-1143647577-line-3)">Run static checks.</text><text class="terminal-1143647577-r2" x="1464" y="93.2" textLength="12.2" clip-path="url(#terminal-1143647577-line-3)"> -</text><text class="terminal-1143647577-r2" x="1464" y="117.6" textLength="12.2" clip-path="url(#terminal-1143647577-line-4)"> -</text><text class="terminal-1143647577-r4" x="0" y="142" textLength="24.4" clip-path="url(#terminal-1143647577-line-5)">╭─</text><text class="terminal-1143647577-r4" x="24.4" y="142" textLength="1415.2" clip-path="url(#terminal-1143647577-line-5)"> Pre-commit flags ──────────────────────────────────────────────────────────────────────────────────────────────────</text><text class="terminal-1143647577-r4" x="1439.6" y="142" textLength="24.4" clip-path="url(#terminal-114364 [...] -</text><text class="terminal-1143647577-r4" x="0" y="166.4" textLength="12.2" clip-path="url(#terminal-1143647577-line-6)">│</text><text class="terminal-1143647577-r5" x="24.4" y="166.4" textLength="12.2" clip-path="url(#terminal-1143647577-line-6)">-</text><text class="terminal-1143647577-r5" x="36.6" y="166.4" textLength="61" clip-path="url(#terminal-1143647577-line-6)">-type</text><text class="terminal-1143647577-r6" x="317.2" y="166.4" textLength="24.4" clip-path="url(#terminal-11436 [...] -</text><text class="terminal-1143647577-r4" x="0" y="190.8" textLength="12.2" clip-path="url(#terminal-1143647577-line-7)">│</text><text class="terminal-1143647577-r7" x="366" y="190.8" textLength="1073.6" clip-path="url(#terminal-1143647577-line-7)">(all | black | blacken-docs | check-airflow-2-2-compatibility |                         [...] -</text><text class="terminal-1143647577-r4" x="0" y="215.2" textLength="12.2" clip-path="url(#terminal-1143647577-line-8)">│</text><text class="terminal-1143647577-r7" x="366" y="215.2" textLength="1073.6" clip-path="url(#terminal-1143647577-line-8)">check-airflow-config-yaml-consistent | check-airflow-providers-have-extras |            </text><text class="terminal-1143647577-r4" x="1451.8" y="215.2" textLength="1 [...] -</text><text class="terminal-1143647577-r4" x="0" y="239.6" textLength="12.2" clip-path="url(#terminal-1143647577-line-9)">│</text><text class="terminal-1143647577-r7" x="366" y="239.6" textLength="1073.6" clip-path="url(#terminal-1143647577-line-9)">check-apache-license-rat | check-base-operator-partial-arguments |                      </text><text class="terminal [...] -</text><text class="terminal-1143647577-r4" x="0" y="264" textLength="12.2" clip-path="url(#terminal-1143647577-line-10)">│</text><text class="terminal-1143647577-r7" x="366" y="264" textLength="1073.6" clip-path="url(#terminal-1143647577-line-10)">check-base-operator-usage | check-boring-cyborg-configuration |                         </text><text cl [...] -</text><text class="terminal-1143647577-r4" x="0" y="288.4" textLength="12.2" clip-path="url(#terminal-1143647577-line-11)">│</text><text class="terminal-1143647577-r7" x="366" y="288.4" textLength="1073.6" clip-path="url(#terminal-1143647577-line-11)">check-breeze-top-dependencies-limited | check-builtin-literals |                        </text><text cla [...] -</text><text class="terminal-1143647577-r4" x="0" y="312.8" textLength="12.2" clip-path="url(#terminal-1143647577-line-12)">│</text><text class="terminal-1143647577-r7" x="366" y="312.8" textLength="1073.6" clip-path="url(#terminal-1143647577-line-12)">check-changelog-has-no-duplicates | check-daysago-import-from-utils |                   </text><text class="terminal-1143647577-r [...] -</text><text class="terminal-1143647577-r4" x="0" y="337.2" textLength="12.2" clip-path="url(#terminal-1143647577-line-13)">│</text><text class="terminal-1143647577-r7" x="366" y="337.2" textLength="1073.6" clip-path="url(#terminal-1143647577-line-13)">check-docstring-param-types | check-example-dags-urls | check-executables-have-shebangs </text><text class="terminal-1143647577-r4" x="1451.8" y="337.2" textLength="12.2" clip-path="url(#terminal-1143647577-line-13 [...] -</text><text class="terminal-1143647577-r4" x="0" y="361.6" textLength="12.2" clip-path="url(#terminal-1143647577-line-14)">│</text><text class="terminal-1143647577-r7" x="366" y="361.6" textLength="1073.6" clip-path="url(#terminal-1143647577-line-14)">| check-extra-packages-references | check-extras-order | check-for-inclusive-language | </text><text class="terminal-1143647577-r4" x="1451.8" y="361.6" textLength="12.2" clip-path="url(#terminal-11436475 [...] -</text><text class="terminal-1143647577-r4" x="0" y="386" textLength="12.2" clip-path="url(#terminal-1143647577-line-15)">│</text><text class="terminal-1143647577-r7" x="366" y="386" textLength="1073.6" clip-path="url(#terminal-1143647577-line-15)">check-hooks-apply | check-incorrect-use-of-LoggingMixin |                             [...] -</text><text class="terminal-1143647577-r4" x="0" y="410.4" textLength="12.2" clip-path="url(#terminal-1143647577-line-16)">│</text><text class="terminal-1143647577-r7" x="366" y="410.4" textLength="1073.6" clip-path="url(#terminal-1143647577-line-16)">check-integrations-are-consistent | check-merge-conflict | check-newsfragments-are-valid</text><text class="terminal-1143647577-r4" x="1451.8" y="410.4" textLength="12.2" clip-path="url(#terminal-1143647577-line-16)">│< [...] -</text><text class="terminal-1143647577-r4" x="0" y="434.8" textLength="12.2" clip-path="url(#terminal-1143647577-line-17)">│</text><text class="terminal-1143647577-r7" x="366" y="434.8" textLength="1073.6" clip-path="url(#terminal-1143647577-line-17)">| check-no-providers-in-core-examples | check-no-relative-imports |                     </text><text class="termin [...] -</text><text class="terminal-1143647577-r4" x="0" y="459.2" textLength="12.2" clip-path="url(#terminal-1143647577-line-18)">│</text><text class="terminal-1143647577-r7" x="366" y="459.2" textLength="1073.6" clip-path="url(#terminal-1143647577-line-18)">check-persist-credentials-disabled-in-github-workflows |                              [...] -</text><text class="terminal-1143647577-r4" x="0" y="483.6" textLength="12.2" clip-path="url(#terminal-1143647577-line-19)">│</text><text class="terminal-1143647577-r7" x="366" y="483.6" textLength="1073.6" clip-path="url(#terminal-1143647577-line-19)">check-pre-commit-information-consistent | check-provide-create-sessions-imports |       </text><text class="terminal-1143647577-r4" x="1451.8" y="483.6" textLength="12.2" clip-path="url(#te [...] -</text><text class="terminal-1143647577-r4" x="0" y="508" textLength="12.2" clip-path="url(#terminal-1143647577-line-20)">│</text><text class="terminal-1143647577-r7" x="366" y="508" textLength="1073.6" clip-path="url(#terminal-1143647577-line-20)">check-provider-yaml-valid | check-providers-init-file-missing |                         </text><text cl [...] -</text><text class="terminal-1143647577-r4" x="0" y="532.4" textLength="12.2" clip-path="url(#terminal-1143647577-line-21)">│</text><text class="terminal-1143647577-r7" x="366" y="532.4" textLength="1073.6" clip-path="url(#terminal-1143647577-line-21)">check-providers-subpackages-init-file-exist | check-pydevd-left-in-code |               </text><text class="terminal-1143647577-r4" x="1451.8" y="532 [...] -</text><text class="terminal-1143647577-r4" x="0" y="556.8" textLength="12.2" clip-path="url(#terminal-1143647577-line-22)">│</text><text class="terminal-1143647577-r7" x="366" y="556.8" textLength="1073.6" clip-path="url(#terminal-1143647577-line-22)">check-revision-heads-map | check-safe-filter-usage-in-html | check-setup-order |        </text><text class="terminal-1143647577-r4" x="1451.8" y="556.8" textLength="12.2" cli [...] -</text><text class="terminal-1143647577-r4" x="0" y="581.2" textLength="12.2" clip-path="url(#terminal-1143647577-line-23)">│</text><text class="terminal-1143647577-r7" x="366" y="581.2" textLength="1073.6" clip-path="url(#terminal-1143647577-line-23)">check-start-date-not-used-in-defaults | check-system-tests-present |                    </text><text class="terminal-1143647 [...] -</text><text class="terminal-1143647577-r4" x="0" y="605.6" textLength="12.2" clip-path="url(#terminal-1143647577-line-24)">│</text><text class="terminal-1143647577-r7" x="366" y="605.6" textLength="1073.6" clip-path="url(#terminal-1143647577-line-24)">check-system-tests-tocs | check-xml | codespell | create-missing-init-py-files-tests |  </text><text class="terminal-1143647577-r4" x="1451.8" y="605.6" textLength="12.2" clip-path="url(#termina [...] -</text><text class="terminal-1143647577-r4" x="0" y="630" textLength="12.2" clip-path="url(#terminal-1143647577-line-25)">│</text><text class="terminal-1143647577-r7" x="366" y="630" textLength="1073.6" clip-path="url(#terminal-1143647577-line-25)">debug-statements | detect-private-key | doctoc | end-of-file-fixer | fix-encoding-pragma</text><text class="terminal-1143647577-r4" x="1451.8" y="630" textLength="12.2" clip-path="url(#terminal-114364757 [...] -</text><text class="terminal-1143647577-r4" x="0" y="654.4" textLength="12.2" clip-path="url(#terminal-1143647577-line-26)">│</text><text class="terminal-1143647577-r7" x="366" y="654.4" textLength="1073.6" clip-path="url(#terminal-1143647577-line-26)">| flynt | forbid-tabs | identity | insert-license | isort | lint-chart-schema | lint-css</text><text class="terminal-1143647577-r4" x="1451.8" y="654.4" textLength="12.2" cli [...] -</text><text class="terminal-1143647577-r4" x="0" y="678.8" textLength="12.2" clip-path="url(#terminal-1143647577-line-27)">│</text><text class="terminal-1143647577-r7" x="366" y="678.8" textLength="1073.6" clip-path="url(#terminal-1143647577-line-27)">| lint-dockerfile | lint-helm-chart | lint-javascript | lint-json-schema | lint-markdown</text><text class="terminal-1143647577-r4" x="1451.8" y="678.8" textLength="12.2" clip-path="url(#termina [...] -</text><text class="terminal-1143647577-r4" x="0" y="703.2" textLength="12.2" clip-path="url(#terminal-1143647577-line-28)">│</text><text class="terminal-1143647577-r7" x="366" y="703.2" textLength="1073.6" clip-path="url(#terminal-1143647577-line-28)">| lint-openapi | mixed-line-ending | pretty-format-json | pydocstyle |                  </text><text class="t [...] -</text><text class="terminal-1143647577-r4" x="0" y="727.6" textLength="12.2" clip-path="url(#terminal-1143647577-line-29)">│</text><text class="terminal-1143647577-r7" x="366" y="727.6" textLength="1073.6" clip-path="url(#terminal-1143647577-line-29)">python-no-log-warn | pyupgrade | rst-backticks | run-flake8 | run-mypy | run-shellcheck </text><text class="terminal-1143647577-r4" x="1451.8" y="727.6" textLength="12.2" clip-path="ur [...] -</text><text class="terminal-1143647577-r4" x="0" y="752" textLength="12.2" clip-path="url(#terminal-1143647577-line-30)">│</text><text class="terminal-1143647577-r7" x="366" y="752" textLength="1073.6" clip-path="url(#terminal-1143647577-line-30)">| static-check-autoflake | trailing-whitespace | update-breeze-cmd-output |             </text><text class="terminal-1143647577-r4" x="1451.8" y="75 [...] -</text><text class="terminal-1143647577-r4" x="0" y="776.4" textLength="12.2" clip-path="url(#terminal-1143647577-line-31)">│</text><text class="terminal-1143647577-r7" x="366" y="776.4" textLength="1073.6" clip-path="url(#terminal-1143647577-line-31)">update-breeze-readme-config-hash | update-extras | update-in-the-wild-to-be-sorted |    </text><text class="terminal-1143647577-r4" x="1451.8" y="776.4" textLength="12.2" clip-path="url(#termina [...] -</text><text class="terminal-1143647577-r4" x="0" y="800.8" textLength="12.2" clip-path="url(#terminal-1143647577-line-32)">│</text><text class="terminal-1143647577-r7" x="366" y="800.8" textLength="1073.6" clip-path="url(#terminal-1143647577-line-32)">update-inlined-dockerfile-scripts | update-local-yml-file | update-migration-references </text><text class="terminal-1143647577-r4" x="1451.8" y="800.8" textLength="12.2" clip-path="url(#terminal-1143647577-line-32 [...] -</text><text class="terminal-1143647577-r4" x="0" y="825.2" textLength="12.2" clip-path="url(#terminal-1143647577-line-33)">│</text><text class="terminal-1143647577-r7" x="366" y="825.2" textLength="1073.6" clip-path="url(#terminal-1143647577-line-33)">| update-providers-dependencies | update-setup-cfg-file |                            [...] -</text><text class="terminal-1143647577-r4" x="0" y="849.6" textLength="12.2" clip-path="url(#terminal-1143647577-line-34)">│</text><text class="terminal-1143647577-r7" x="366" y="849.6" textLength="1073.6" clip-path="url(#terminal-1143647577-line-34)">update-spelling-wordlist-to-be-sorted | update-supported-versions |                     </text><text class="terminal-11 [...] -</text><text class="terminal-1143647577-r4" x="0" y="874" textLength="12.2" clip-path="url(#terminal-1143647577-line-35)">│</text><text class="terminal-1143647577-r7" x="366" y="874" textLength="1073.6" clip-path="url(#terminal-1143647577-line-35)">update-vendored-in-k8s-json-schema | update-version | yamllint | yesqa)                 </text><text class="terminal-1143647577- [...] -</text><text class="terminal-1143647577-r4" x="0" y="898.4" textLength="12.2" clip-path="url(#terminal-1143647577-line-36)">│</text><text class="terminal-1143647577-r5" x="24.4" y="898.4" textLength="12.2" clip-path="url(#terminal-1143647577-line-36)">-</text><text class="terminal-1143647577-r5" x="36.6" y="898.4" textLength="61" clip-path="url(#terminal-1143647577-line-36)">-file</text><text class="terminal-1143647577-r6" x="317.2" y="898.4" textLength="24.4" clip-path="url(#terminal-11 [...] -</text><text class="terminal-1143647577-r4" x="0" y="922.8" textLength="12.2" clip-path="url(#terminal-1143647577-line-37)">│</text><text class="terminal-1143647577-r5" x="24.4" y="922.8" textLength="12.2" clip-path="url(#terminal-1143647577-line-37)">-</text><text class="terminal-1143647577-r5" x="36.6" y="922.8" textLength="48.8" clip-path="url(#terminal-1143647577-line-37)">-all</text><text class="terminal-1143647577-r5" x="85.4" y="922.8" textLength="73.2" clip-path="url(#terminal-11 [...] -</text><text class="terminal-1143647577-r4" x="0" y="947.2" textLength="12.2" clip-path="url(#terminal-1143647577-line-38)">│</text><text class="terminal-1143647577-r5" x="24.4" y="947.2" textLength="12.2" clip-path="url(#terminal-1143647577-line-38)">-</text><text class="terminal-1143647577-r5" x="36.6" y="947.2" textLength="61" clip-path="url(#terminal-1143647577-line-38)">-show</text><text class="terminal-1143647577-r5" x="97.6" y="947.2" textLength="195.2" clip-path="url(#terminal-11 [...] -</text><text class="terminal-1143647577-r4" x="0" y="971.6" textLength="12.2" clip-path="url(#terminal-1143647577-line-39)">│</text><text class="terminal-1143647577-r5" x="24.4" y="971.6" textLength="12.2" clip-path="url(#terminal-1143647577-line-39)">-</text><text class="terminal-1143647577-r5" x="36.6" y="971.6" textLength="61" clip-path="url(#terminal-1143647577-line-39)">-last</text><text class="terminal-1143647577-r5" x="97.6" y="971.6" textLength="85.4" clip-path="url(#terminal-114 [...] -</text><text class="terminal-1143647577-r4" x="0" y="996" textLength="1464" clip-path="url(#terminal-1143647577-line-40)">╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯</text><text class="terminal-1143647577-r2" x="1464" y="996" textLength="12.2" clip-path="url(#terminal-1143647577-line-40)"> -</text><text class="terminal-1143647577-r4" x="0" y="1020.4" textLength="24.4" clip-path="url(#terminal-1143647577-line-41)">╭─</text><text class="terminal-1143647577-r4" x="24.4" y="1020.4" textLength="1415.2" clip-path="url(#terminal-1143647577-line-41)"> Options ───────────────────────────────────────────────────────────────────────────────────────────────────────────</text><text class="terminal-1143647577-r4" x="1439.6" y="1020.4" textLength="24.4" clip-path="url(#terminal- [...] -</text><text class="terminal-1143647577-r4" x="0" y="1044.8" textLength="12.2" clip-path="url(#terminal-1143647577-line-42)">│</text><text class="terminal-1143647577-r5" x="24.4" y="1044.8" textLength="12.2" clip-path="url(#terminal-1143647577-line-42)">-</text><text class="terminal-1143647577-r5" x="36.6" y="1044.8" textLength="85.4" clip-path="url(#terminal-1143647577-line-42)">-commit</text><text class="terminal-1143647577-r5" x="122" y="1044.8" textLength="48.8" clip-path="url(#termi [...] -</text><text class="terminal-1143647577-r4" x="0" y="1069.2" textLength="12.2" clip-path="url(#terminal-1143647577-line-43)">│</text><text class="terminal-1143647577-r2" x="329.4" y="1069.2" textLength="183" clip-path="url(#terminal-1143647577-line-43)">exclusive with </text><text class="terminal-1143647577-r5" x="512.4" y="1069.2" textLength="12.2" clip-path="url(#terminal-1143647577-line-43)">-</text><text class="terminal-1143647577-r5" x="524.6" y="1069.2" textLength="61" cl [...] -</text><text class="terminal-1143647577-r4" x="0" y="1093.6" textLength="12.2" clip-path="url(#terminal-1143647577-line-44)">│</text><text class="terminal-1143647577-r7" x="329.4" y="1093.6" textLength="1110.2" clip-path="url(#terminal-1143647577-line-44)">(TEXT)                                      & [...] -</text><text class="terminal-1143647577-r4" x="0" y="1118" textLength="12.2" clip-path="url(#terminal-1143647577-line-45)">│</text><text class="terminal-1143647577-r5" x="24.4" y="1118" textLength="12.2" clip-path="url(#terminal-1143647577-line-45)">-</text><text class="terminal-1143647577-r5" x="36.6" y="1118" textLength="97.6" clip-path="url(#terminal-1143647577-line-45)">-verbose</text><text class="terminal-1143647577-r6" x="280.6" y="1118" textLength="24.4" clip-path="url(#terminal-1 [...] -</text><text class="terminal-1143647577-r4" x="0" y="1142.4" textLength="12.2" clip-path="url(#terminal-1143647577-line-46)">│</text><text class="terminal-1143647577-r5" x="24.4" y="1142.4" textLength="12.2" clip-path="url(#terminal-1143647577-line-46)">-</text><text class="terminal-1143647577-r5" x="36.6" y="1142.4" textLength="48.8" clip-path="url(#terminal-1143647577-line-46)">-dry</text><text class="terminal-1143647577-r5" x="85.4" y="1142.4" textLength="48.8" clip-path="url(#termina [...] -</text><text class="terminal-1143647577-r4" x="0" y="1166.8" textLength="12.2" clip-path="url(#terminal-1143647577-line-47)">│</text><text class="terminal-1143647577-r5" x="24.4" y="1166.8" textLength="12.2" clip-path="url(#terminal-1143647577-line-47)">-</text><text class="terminal-1143647577-r5" x="36.6" y="1166.8" textLength="85.4" clip-path="url(#terminal-1143647577-line-47)">-github</text><text class="terminal-1143647577-r5" x="122" y="1166.8" textLength="134.2" clip-path="url(#term [...] -</text><text class="terminal-1143647577-r4" x="0" y="1191.2" textLength="12.2" clip-path="url(#terminal-1143647577-line-48)">│</text><text class="terminal-1143647577-r5" x="24.4" y="1191.2" textLength="12.2" clip-path="url(#terminal-1143647577-line-48)">-</text><text class="terminal-1143647577-r5" x="36.6" y="1191.2" textLength="61" clip-path="url(#terminal-1143647577-line-48)">-help</text><text class="terminal-1143647577-r6" x="280.6" y="1191.2" textLength="24.4" clip-path="url(#termina [...] -</text><text class="terminal-1143647577-r4" x="0" y="1215.6" textLength="1464" clip-path="url(#terminal-1143647577-line-49)">╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯</text><text class="terminal-1143647577-r2" x="1464" y="1215.6" textLength="12.2" clip-path="url(#terminal-1143647577-line-49)"> + <g class="terminal-751396731-matrix"> + <text class="terminal-751396731-r2" x="1464" y="20" textLength="12.2" clip-path="url(#terminal-751396731-line-0)"> +</text><text class="terminal-751396731-r3" x="12.2" y="44.4" textLength="85.4" clip-path="url(#terminal-751396731-line-1)">Usage: </text><text class="terminal-751396731-r1" x="97.6" y="44.4" textLength="610" clip-path="url(#terminal-751396731-line-1)">breeze static-checks [OPTIONS] [PRECOMMIT_ARGS]...</text><text class="terminal-751396731-r2" x="1464" y="44.4" textLength="12.2" clip-path="url(#terminal-751396731-line-1)"> +</text><text class="terminal-751396731-r2" x="1464" y="68.8" textLength="12.2" clip-path="url(#terminal-751396731-line-2)"> +</text><text class="terminal-751396731-r2" x="12.2" y="93.2" textLength="219.6" clip-path="url(#terminal-751396731-line-3)">Run static checks.</text><text class="terminal-751396731-r2" x="1464" y="93.2" textLength="12.2" clip-path="url(#terminal-751396731-line-3)"> +</text><text class="terminal-751396731-r2" x="1464" y="117.6" textLength="12.2" clip-path="url(#terminal-751396731-line-4)"> +</text><text class="terminal-751396731-r4" x="0" y="142" textLength="24.4" clip-path="url(#terminal-751396731-line-5)">╭─</text><text class="terminal-751396731-r4" x="24.4" y="142" textLength="1415.2" clip-path="url(#terminal-751396731-line-5)"> Pre-commit flags ──────────────────────────────────────────────────────────────────────────────────────────────────</text><text class="terminal-751396731-r4" x="1439.6" y="142" textLength="24.4" clip-path="url(#terminal-751396731-l [...] +</text><text class="terminal-751396731-r4" x="0" y="166.4" textLength="12.2" clip-path="url(#terminal-751396731-line-6)">│</text><text class="terminal-751396731-r5" x="24.4" y="166.4" textLength="12.2" clip-path="url(#terminal-751396731-line-6)">-</text><text class="terminal-751396731-r5" x="36.6" y="166.4" textLength="61" clip-path="url(#terminal-751396731-line-6)">-type</text><text class="terminal-751396731-r6" x="317.2" y="166.4" textLength="24.4" clip-path="url(#terminal-751396731-li [...] +</text><text class="terminal-751396731-r4" x="0" y="190.8" textLength="12.2" clip-path="url(#terminal-751396731-line-7)">│</text><text class="terminal-751396731-r7" x="366" y="190.8" textLength="1073.6" clip-path="url(#terminal-751396731-line-7)">(all | black | blacken-docs | check-airflow-2-2-compatibility |                         [...] +</text><text class="terminal-751396731-r4" x="0" y="215.2" textLength="12.2" clip-path="url(#terminal-751396731-line-8)">│</text><text class="terminal-751396731-r7" x="366" y="215.2" textLength="1073.6" clip-path="url(#terminal-751396731-line-8)">check-airflow-config-yaml-consistent | check-airflow-providers-have-extras |            </text><text class="terminal-751396731-r4" x="1451.8" y="215.2" textLength="12.2" [...] +</text><text class="terminal-751396731-r4" x="0" y="239.6" textLength="12.2" clip-path="url(#terminal-751396731-line-9)">│</text><text class="terminal-751396731-r7" x="366" y="239.6" textLength="1073.6" clip-path="url(#terminal-751396731-line-9)">check-apache-license-rat | check-base-operator-usage | check-boring-cyborg-configuration</text><text class="terminal-751396731-r4" x="1451.8" y="239.6" textLength="12.2" clip-path="url(#terminal-751396731-line-9)">│</text><te [...] +</text><text class="terminal-751396731-r4" x="0" y="264" textLength="12.2" clip-path="url(#terminal-751396731-line-10)">│</text><text class="terminal-751396731-r7" x="366" y="264" textLength="1073.6" clip-path="url(#terminal-751396731-line-10)">| check-breeze-top-dependencies-limited | check-builtin-literals |                      </text><text class="terminal- [...] +</text><text class="terminal-751396731-r4" x="0" y="288.4" textLength="12.2" clip-path="url(#terminal-751396731-line-11)">│</text><text class="terminal-751396731-r7" x="366" y="288.4" textLength="1073.6" clip-path="url(#terminal-751396731-line-11)">check-changelog-has-no-duplicates | check-daysago-import-from-utils |                   </text><text class="terminal-751396731-r4" x= [...] +</text><text class="terminal-751396731-r4" x="0" y="312.8" textLength="12.2" clip-path="url(#terminal-751396731-line-12)">│</text><text class="terminal-751396731-r7" x="366" y="312.8" textLength="1073.6" clip-path="url(#terminal-751396731-line-12)">check-docstring-param-types | check-executables-have-shebangs |                         </text><text cl [...] +</text><text class="terminal-751396731-r4" x="0" y="337.2" textLength="12.2" clip-path="url(#terminal-751396731-line-13)">│</text><text class="terminal-751396731-r7" x="366" y="337.2" textLength="1073.6" clip-path="url(#terminal-751396731-line-13)">check-extra-packages-references | check-extras-order | check-for-inclusive-language |   </text><text class="terminal-751396731-r4" x="1451.8" y="337.2" textLength="12.2" clip-path="url(#terminal-75139673 [...] +</text><text class="terminal-751396731-r4" x="0" y="361.6" textLength="12.2" clip-path="url(#terminal-751396731-line-14)">│</text><text class="terminal-751396731-r7" x="366" y="361.6" textLength="1073.6" clip-path="url(#terminal-751396731-line-14)">check-hooks-apply | check-incorrect-use-of-LoggingMixin |                             [...] +</text><text class="terminal-751396731-r4" x="0" y="386" textLength="12.2" clip-path="url(#terminal-751396731-line-15)">│</text><text class="terminal-751396731-r7" x="366" y="386" textLength="1073.6" clip-path="url(#terminal-751396731-line-15)">check-integrations-are-consistent | check-merge-conflict | check-newsfragments-are-valid</text><text class="terminal-751396731-r4" x="1451.8" y="386" textLength="12.2" clip-path="url(#terminal-751396731-line-15)">│</text><text [...] +</text><text class="terminal-751396731-r4" x="0" y="410.4" textLength="12.2" clip-path="url(#terminal-751396731-line-16)">│</text><text class="terminal-751396731-r7" x="366" y="410.4" textLength="1073.6" clip-path="url(#terminal-751396731-line-16)">| check-no-providers-in-core-examples | check-no-relative-imports |                     </text><text class="terminal-7 [...] +</text><text class="terminal-751396731-r4" x="0" y="434.8" textLength="12.2" clip-path="url(#terminal-751396731-line-17)">│</text><text class="terminal-751396731-r7" x="366" y="434.8" textLength="1073.6" clip-path="url(#terminal-751396731-line-17)">check-persist-credentials-disabled-in-github-workflows |                              &# [...] +</text><text class="terminal-751396731-r4" x="0" y="459.2" textLength="12.2" clip-path="url(#terminal-751396731-line-18)">│</text><text class="terminal-751396731-r7" x="366" y="459.2" textLength="1073.6" clip-path="url(#terminal-751396731-line-18)">check-pre-commit-information-consistent | check-provide-create-sessions-imports |       </text><text class="terminal-751396731-r4" x="1451.8" y="459.2" textLength="12.2" clip-path="url(#termina [...] +</text><text class="terminal-751396731-r4" x="0" y="483.6" textLength="12.2" clip-path="url(#terminal-751396731-line-19)">│</text><text class="terminal-751396731-r7" x="366" y="483.6" textLength="1073.6" clip-path="url(#terminal-751396731-line-19)">check-provider-yaml-valid | check-providers-init-file-missing |                         </text><text cl [...] +</text><text class="terminal-751396731-r4" x="0" y="508" textLength="12.2" clip-path="url(#terminal-751396731-line-20)">│</text><text class="terminal-751396731-r7" x="366" y="508" textLength="1073.6" clip-path="url(#terminal-751396731-line-20)">check-providers-subpackages-init-file-exist | check-pydevd-left-in-code |               </text><text class="terminal-751396731-r4" x="1451.8" y="508" textLen [...] +</text><text class="terminal-751396731-r4" x="0" y="532.4" textLength="12.2" clip-path="url(#terminal-751396731-line-21)">│</text><text class="terminal-751396731-r7" x="366" y="532.4" textLength="1073.6" clip-path="url(#terminal-751396731-line-21)">check-revision-heads-map | check-safe-filter-usage-in-html | check-setup-order |        </text><text class="terminal-751396731-r4" x="1451.8" y="532.4" textLength="12.2" clip-pat [...] +</text><text class="terminal-751396731-r4" x="0" y="556.8" textLength="12.2" clip-path="url(#terminal-751396731-line-22)">│</text><text class="terminal-751396731-r7" x="366" y="556.8" textLength="1073.6" clip-path="url(#terminal-751396731-line-22)">check-start-date-not-used-in-defaults | check-system-tests-present | check-xml |        </text><text class="terminal-751396731-r4" x="1451.8" y="556.8" textLength="12.2" clip-pat [...] +</text><text class="terminal-751396731-r4" x="0" y="581.2" textLength="12.2" clip-path="url(#terminal-751396731-line-23)">│</text><text class="terminal-751396731-r7" x="366" y="581.2" textLength="1073.6" clip-path="url(#terminal-751396731-line-23)">codespell | debug-statements | detect-private-key | doctoc | end-of-file-fixer |        </text><text class="terminal-751396731-r4" x="1451.8" y="581.2" textLe [...] +</text><text class="terminal-751396731-r4" x="0" y="605.6" textLength="12.2" clip-path="url(#terminal-751396731-line-24)">│</text><text class="terminal-751396731-r7" x="366" y="605.6" textLength="1073.6" clip-path="url(#terminal-751396731-line-24)">fix-encoding-pragma | flynt | forbid-tabs | identity | insert-license | isort |         </text><text class="terminal-751396731-r4" x="1451.8" y [...] +</text><text class="terminal-751396731-r4" x="0" y="630" textLength="12.2" clip-path="url(#terminal-751396731-line-25)">│</text><text class="terminal-751396731-r7" x="366" y="630" textLength="1073.6" clip-path="url(#terminal-751396731-line-25)">lint-chart-schema | lint-css | lint-dockerfile | lint-helm-chart | lint-javascript |    </text><text class="terminal-751396731-r4" x="1451.8" y="630" textLength="12.2" clip-path="url [...] +</text><text class="terminal-751396731-r4" x="0" y="654.4" textLength="12.2" clip-path="url(#terminal-751396731-line-26)">│</text><text class="terminal-751396731-r7" x="366" y="654.4" textLength="1073.6" clip-path="url(#terminal-751396731-line-26)">lint-json-schema | lint-markdown | lint-openapi | mixed-line-ending | pretty-format-json</text><text class="terminal-751396731-r4" x="1451.8" y="654.4" textLength="12.2" clip-path="url(#terminal-75139673 [...] +</text><text class="terminal-751396731-r4" x="0" y="678.8" textLength="12.2" clip-path="url(#terminal-751396731-line-27)">│</text><text class="terminal-751396731-r7" x="366" y="678.8" textLength="1073.6" clip-path="url(#terminal-751396731-line-27)">| pydocstyle | python-no-log-warn | pyupgrade | rst-backticks | run-flake8 | run-mypy | </text><text class="terminal-751396731-r4" x="1451.8" y="678.8" textLength="12.2" clip-pat [...] +</text><text class="terminal-751396731-r4" x="0" y="703.2" textLength="12.2" clip-path="url(#terminal-751396731-line-28)">│</text><text class="terminal-751396731-r7" x="366" y="703.2" textLength="1073.6" clip-path="url(#terminal-751396731-line-28)">run-shellcheck | static-check-autoflake | trailing-whitespace | update-breeze-cmd-output</text><text class="terminal-751396731-r4" x="1451.8" y="703.2" textLength="12.2" clip-path="url(#terminal-751396731-line-28) [...] +</text><text class="terminal-751396731-r4" x="0" y="727.6" textLength="12.2" clip-path="url(#terminal-751396731-line-29)">│</text><text class="terminal-751396731-r7" x="366" y="727.6" textLength="1073.6" clip-path="url(#terminal-751396731-line-29)">| update-breeze-readme-config-hash | update-extras | update-in-the-wild-to-be-sorted |  </text><text class="terminal-751396731-r4" x="1451.8" y="727.6" textLength="12.2" clip-path="url(#terminal-75139673 [...] +</text><text class="terminal-751396731-r4" x="0" y="752" textLength="12.2" clip-path="url(#terminal-751396731-line-30)">│</text><text class="terminal-751396731-r7" x="366" y="752" textLength="1073.6" clip-path="url(#terminal-751396731-line-30)">update-inlined-dockerfile-scripts | update-local-yml-file | update-migration-references </text><text class="terminal-751396731-r4" x="1451.8" y="752" textLength="12.2" clip-path="url(#terminal-751396731-line-30)">│</text>< [...] +</text><text class="terminal-751396731-r4" x="0" y="776.4" textLength="12.2" clip-path="url(#terminal-751396731-line-31)">│</text><text class="terminal-751396731-r7" x="366" y="776.4" textLength="1073.6" clip-path="url(#terminal-751396731-line-31)">| update-providers-dependencies | update-setup-cfg-file |                            [...] +</text><text class="terminal-751396731-r4" x="0" y="800.8" textLength="12.2" clip-path="url(#terminal-751396731-line-32)">│</text><text class="terminal-751396731-r7" x="366" y="800.8" textLength="1073.6" clip-path="url(#terminal-751396731-line-32)">update-spelling-wordlist-to-be-sorted | update-supported-versions |                     </text><text class="terminal-751396 [...] +</text><text class="terminal-751396731-r4" x="0" y="825.2" textLength="12.2" clip-path="url(#terminal-751396731-line-33)">│</text><text class="terminal-751396731-r7" x="366" y="825.2" textLength="1073.6" clip-path="url(#terminal-751396731-line-33)">update-vendored-in-k8s-json-schema | update-version | yamllint | yesqa)                 </text><text class="terminal-751396731-r [...] +</text><text class="terminal-751396731-r4" x="0" y="849.6" textLength="12.2" clip-path="url(#terminal-751396731-line-34)">│</text><text class="terminal-751396731-r5" x="24.4" y="849.6" textLength="12.2" clip-path="url(#terminal-751396731-line-34)">-</text><text class="terminal-751396731-r5" x="36.6" y="849.6" textLength="61" clip-path="url(#terminal-751396731-line-34)">-file</text><text class="terminal-751396731-r6" x="317.2" y="849.6" textLength="24.4" clip-path="url(#terminal-751396731 [...] +</text><text class="terminal-751396731-r4" x="0" y="874" textLength="12.2" clip-path="url(#terminal-751396731-line-35)">│</text><text class="terminal-751396731-r5" x="24.4" y="874" textLength="12.2" clip-path="url(#terminal-751396731-line-35)">-</text><text class="terminal-751396731-r5" x="36.6" y="874" textLength="48.8" clip-path="url(#terminal-751396731-line-35)">-all</text><text class="terminal-751396731-r5" x="85.4" y="874" textLength="73.2" clip-path="url(#terminal-751396731-line-35 [...] +</text><text class="terminal-751396731-r4" x="0" y="898.4" textLength="12.2" clip-path="url(#terminal-751396731-line-36)">│</text><text class="terminal-751396731-r5" x="24.4" y="898.4" textLength="12.2" clip-path="url(#terminal-751396731-line-36)">-</text><text class="terminal-751396731-r5" x="36.6" y="898.4" textLength="61" clip-path="url(#terminal-751396731-line-36)">-show</text><text class="terminal-751396731-r5" x="97.6" y="898.4" textLength="195.2" clip-path="url(#terminal-751396731 [...] +</text><text class="terminal-751396731-r4" x="0" y="922.8" textLength="12.2" clip-path="url(#terminal-751396731-line-37)">│</text><text class="terminal-751396731-r5" x="24.4" y="922.8" textLength="12.2" clip-path="url(#terminal-751396731-line-37)">-</text><text class="terminal-751396731-r5" x="36.6" y="922.8" textLength="61" clip-path="url(#terminal-751396731-line-37)">-last</text><text class="terminal-751396731-r5" x="97.6" y="922.8" textLength="85.4" clip-path="url(#terminal-751396731- [...] +</text><text class="terminal-751396731-r4" x="0" y="947.2" textLength="1464" clip-path="url(#terminal-751396731-line-38)">╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯</text><text class="terminal-751396731-r2" x="1464" y="947.2" textLength="12.2" clip-path="url(#terminal-751396731-line-38)"> +</text><text class="terminal-751396731-r4" x="0" y="971.6" textLength="24.4" clip-path="url(#terminal-751396731-line-39)">╭─</text><text class="terminal-751396731-r4" x="24.4" y="971.6" textLength="1415.2" clip-path="url(#terminal-751396731-line-39)"> Options ───────────────────────────────────────────────────────────────────────────────────────────────────────────</text><text class="terminal-751396731-r4" x="1439.6" y="971.6" textLength="24.4" clip-path="url(#terminal-75139673 [...] +</text><text class="terminal-751396731-r4" x="0" y="996" textLength="12.2" clip-path="url(#terminal-751396731-line-40)">│</text><text class="terminal-751396731-r5" x="24.4" y="996" textLength="12.2" clip-path="url(#terminal-751396731-line-40)">-</text><text class="terminal-751396731-r5" x="36.6" y="996" textLength="85.4" clip-path="url(#terminal-751396731-line-40)">-commit</text><text class="terminal-751396731-r5" x="122" y="996" textLength="48.8" clip-path="url(#terminal-751396731-line- [...] +</text><text class="terminal-751396731-r4" x="0" y="1020.4" textLength="12.2" clip-path="url(#terminal-751396731-line-41)">│</text><text class="terminal-751396731-r2" x="329.4" y="1020.4" textLength="183" clip-path="url(#terminal-751396731-line-41)">exclusive with </text><text class="terminal-751396731-r5" x="512.4" y="1020.4" textLength="12.2" clip-path="url(#terminal-751396731-line-41)">-</text><text class="terminal-751396731-r5" x="524.6" y="1020.4" textLength="61" clip-path [...] +</text><text class="terminal-751396731-r4" x="0" y="1044.8" textLength="12.2" clip-path="url(#terminal-751396731-line-42)">│</text><text class="terminal-751396731-r7" x="329.4" y="1044.8" textLength="1110.2" clip-path="url(#terminal-751396731-line-42)">(TEXT)                                        [...] +</text><text class="terminal-751396731-r4" x="0" y="1069.2" textLength="12.2" clip-path="url(#terminal-751396731-line-43)">│</text><text class="terminal-751396731-r5" x="24.4" y="1069.2" textLength="12.2" clip-path="url(#terminal-751396731-line-43)">-</text><text class="terminal-751396731-r5" x="36.6" y="1069.2" textLength="97.6" clip-path="url(#terminal-751396731-line-43)">-verbose</text><text class="terminal-751396731-r6" x="280.6" y="1069.2" textLength="24.4" clip-path="url(#terminal- [...] +</text><text class="terminal-751396731-r4" x="0" y="1093.6" textLength="12.2" clip-path="url(#terminal-751396731-line-44)">│</text><text class="terminal-751396731-r5" x="24.4" y="1093.6" textLength="12.2" clip-path="url(#terminal-751396731-line-44)">-</text><text class="terminal-751396731-r5" x="36.6" y="1093.6" textLength="48.8" clip-path="url(#terminal-751396731-line-44)">-dry</text><text class="terminal-751396731-r5" x="85.4" y="1093.6" textLength="48.8" clip-path="url(#terminal-75139 [...] +</text><text class="terminal-751396731-r4" x="0" y="1118" textLength="12.2" clip-path="url(#terminal-751396731-line-45)">│</text><text class="terminal-751396731-r5" x="24.4" y="1118" textLength="12.2" clip-path="url(#terminal-751396731-line-45)">-</text><text class="terminal-751396731-r5" x="36.6" y="1118" textLength="85.4" clip-path="url(#terminal-751396731-line-45)">-github</text><text class="terminal-751396731-r5" x="122" y="1118" textLength="134.2" clip-path="url(#terminal-751396731- [...] +</text><text class="terminal-751396731-r4" x="0" y="1142.4" textLength="12.2" clip-path="url(#terminal-751396731-line-46)">│</text><text class="terminal-751396731-r5" x="24.4" y="1142.4" textLength="12.2" clip-path="url(#terminal-751396731-line-46)">-</text><text class="terminal-751396731-r5" x="36.6" y="1142.4" textLength="61" clip-path="url(#terminal-751396731-line-46)">-help</text><text class="terminal-751396731-r6" x="280.6" y="1142.4" textLength="24.4" clip-path="url(#terminal-75139 [...] +</text><text class="terminal-751396731-r4" x="0" y="1166.8" textLength="1464" clip-path="url(#terminal-751396731-line-47)">╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯</text><text class="terminal-751396731-r2" x="1464" y="1166.8" textLength="12.2" clip-path="url(#terminal-751396731-line-47)"> </text> </g> </g> diff --git a/scripts/ci/pre_commit/pre_commit_check_2_1_compatibility.py b/scripts/ci/pre_commit/pre_commit_check_2_2_compatibility.py similarity index 100% rename from scripts/ci/pre_commit/pre_commit_check_2_1_compatibility.py rename to scripts/ci/pre_commit/pre_commit_check_2_2_compatibility.py diff --git a/tests/system/providers/elasticsearch/__init__.py b/tests/system/providers/elasticsearch/__init__.py deleted file mode 100644 index 13a83393a9..0000000000 --- a/tests/system/providers/elasticsearch/__init__.py +++ /dev/null @@ -1,16 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. diff --git a/tests/system/providers/elasticsearch/example_elasticsearch_query.py b/tests/system/providers/elasticsearch/example_elasticsearch_query.py deleted file mode 100644 index 8edc348a08..0000000000 --- a/tests/system/providers/elasticsearch/example_elasticsearch_query.py +++ /dev/null @@ -1,66 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -""" -Example Airflow DAG for Elasticsearch Query. -""" -import os -from datetime import datetime - -from airflow import models -from airflow.decorators import task -from airflow.providers.elasticsearch.hooks.elasticsearch import ElasticsearchHook - -ENV_ID = os.environ.get("SYSTEM_TESTS_ENV_ID") -DAG_ID = 'elasticsearch_dag' -CONN_ID = 'elasticsearch_default' - - -@task(task_id='es_print_tables') -def show_tables(): - """ - show_tables queries elasticsearch to list available tables - """ - # [START howto_elasticsearch_query] - es = ElasticsearchHook(elasticsearch_conn_id=CONN_ID) - - # Handle ES conn with context manager - with es.get_conn() as es_conn: - tables = es_conn.execute('SHOW TABLES') - for table, *_ in tables: - print(f"table: {table}") - return True - # [END howto_elasticsearch_query] - - -with models.DAG( - DAG_ID, - schedule_interval="@once", - start_date=datetime(2021, 1, 1), - catchup=False, - tags=["example", "elasticsearch"], -) as dag: - execute_query = show_tables() - ( - # TEST BODY - execute_query - ) - -from tests.system.utils import get_test_run # noqa: E402 - -# Needed to run the example DAG with pytest (see: tests/system/README.md#run_via_pytest) -test_run = get_test_run(dag)
