Skip to content

Commit

Permalink
Standardize the pre-commit config (apache#22674)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbampton authored Apr 1, 2022
1 parent be9cca9 commit 29de8da
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,6 @@ repos:
exclude: >
(?x)
^airflow/decorators/.*$|
^airflow/gcp/.*$|
^airflow/hooks/.*$|
^airflow/operators/.*$|
^airflow/sensors/.*$|
Expand All @@ -439,7 +438,6 @@ repos:
pass_filenames: true
files: >
(?x)
^airflow/gcp/.*$|
^airflow/hooks/.*$|
^airflow/operators/.*$|
^airflow/sensors/.*$|
Expand Down Expand Up @@ -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'
Expand All @@ -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
Expand All @@ -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']
Expand Down Expand Up @@ -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/
Expand All @@ -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
Expand All @@ -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

0 comments on commit 29de8da

Please sign in to comment.