Skip to content

Commit

Permalink
Fix potential race on modifying __init__.py for providers (#45196)
Browse files Browse the repository at this point in the history
Two things:

* limit number of __init__.py files that might trigger the update
* make the updates serial
  • Loading branch information
potiuk authored Dec 24, 2024
1 parent a540eeb commit f27eb71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,9 @@ repos:
entry: ./scripts/ci/pre_commit/update_providers_init.py
language: python
pass_filenames: true
files: ^providers/.*/__init__.py$|^providers/.*/provider.yaml$|^airflow_breeze/templates/PROVIDER__INIT__PY_TEMPLATE.py.jinja2^
files: ^providers/[^\/]*/__init__.py$|^providers/[^\/]*/[^\/]*/__init__.py$|^providers/.*/provider.yaml$|^airflow_breeze/templates/PROVIDER__INIT__PY_TEMPLATE.py.jinja2^
additional_dependencies: ['rich>=12.4.4','requests']
require_serial: true
- id: ruff
name: Run 'ruff' for extremely fast Python linting
description: "Run 'ruff' for extremely fast Python linting"
Expand Down

0 comments on commit f27eb71

Please sign in to comment.