diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e14eac78bb14f..b5ccaaab666e0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -425,7 +425,6 @@ repos: exclude: > (?x) ^airflow/decorators/.*$| - ^airflow/gcp/.*$| ^airflow/hooks/.*$| ^airflow/operators/.*$| ^airflow/sensors/.*$| @@ -439,7 +438,6 @@ repos: pass_filenames: true files: > (?x) - ^airflow/gcp/.*$| ^airflow/hooks/.*$| ^airflow/operators/.*$| ^airflow/sensors/.*$| @@ -552,7 +550,7 @@ repos: entry: ./scripts/ci/pre_commit/pre_commit_check_provider_yaml_files.py language: python require_serial: true - files: provider\.yaml$|scripts/ci/pre_commit/pre_commit_check_provider_yaml_files\.py$|^docs/ + files: provider\.yaml$|^scripts/ci/pre_commit/pre_commit_check_provider_yaml_files\.py$|^docs/ additional_dependencies: - 'PyYAML==5.3.1' - 'jsonschema>=3.2.0,<5.0.0' @@ -563,7 +561,7 @@ repos: name: Check if pre-commits are described entry: ./scripts/ci/pre_commit/pre_commit_check_pre_commits.sh language: system - files: ^\.pre-commit-config\.yaml$|^STATIC_CODE_CHECKS\.rst|^breeze-complete$ + files: ^\.pre-commit-config\.yaml$|^STATIC_CODE_CHECKS\.rst$|^breeze-complete$ require_serial: true - id: pre-commit-hook-names name: Ensure hook ids are not overly long @@ -579,7 +577,7 @@ repos: name: Checks providers available when declared by extras in setup.py language: python entry: ./scripts/ci/pre_commit/pre_commit_check_extras_have_providers.py - files: setup\.py$|^airflow/providers/.*\.py$ + files: ^setup\.py$|^airflow/providers/.*\.py$ pass_filenames: false require_serial: true additional_dependencies: ['rich'] @@ -712,7 +710,7 @@ repos: entry: ./scripts/ci/static_checks/ui_lint.sh pass_filenames: false - id: www-lint - name: ESLint against current UI js files + name: ESLint against current UI JavaScript files language: node 'types_or': [javascript] files: ^airflow/www/static/js/ @@ -738,7 +736,7 @@ repos: language: system entry: ./scripts/ci/pre_commit/pre_commit_mypy.sh files: ^docs/.*\.py$ - exclude: rtd-deprecation + exclude: ^docs/rtd-deprecation require_serial: true - id: flake8 name: Run flake8 @@ -752,5 +750,5 @@ repos: language: system entry: ./scripts/ci/pre_commit/pre_commit_migration_reference.sh pass_filenames: false - files: ^airflow/migrations/versions/.*\.py$|^docs/apache-airflow/migrations-ref.rst$ + files: ^airflow/migrations/versions/.*\.py$|^docs/apache-airflow/migrations-ref\.rst$ ## ONLY ADD PRE-COMMITS HERE THAT REQUIRE CI IMAGE