This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch v3-3-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v3-3-test by this push:
new ba96a1af4f3 [v3-3-test] Use uv --package instead of --project in
codegen prek hooks (#71511) (#71512)
ba96a1af4f3 is described below
commit ba96a1af4f33e41478c01c96aab100bddf989258
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Aug 17 17:57:58 2026 +0200
[v3-3-test] Use uv --package instead of --project in codegen prek hooks
(#71511) (#71512)
The two datamodel-codegen hooks passed workspace package names to
--project, which takes a directory. uv 0.11 tolerated it; uv 0.12
validates the path and fails with "Project directory does not exist",
blocking the CI environment upgrade. --package is the flag that takes a
member name, and it works on both versions.
(cherry picked from commit c74cfcbae17aa4aa89e66afca8e92035f957aba5)
Co-authored-by: Jarek Potiuk <[email protected]>
---
.pre-commit-config.yaml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index c8e78cacd3c..b5025cf01c0 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1298,7 +1298,7 @@ repos:
- id: generate-tasksdk-datamodels
name: Generate Datamodels for TaskSDK client
language: python
- entry: uv run -p 3.12 --no-progress --active --group codegen --project
apache-airflow-task-sdk --directory task-sdk -s dev/generate_task_sdk_models.py
+ entry: uv run -p 3.12 --no-progress --active --group codegen --package
apache-airflow-task-sdk --directory task-sdk -s dev/generate_task_sdk_models.py
pass_filenames: false
files: ^airflow-core/src/airflow/api_fastapi/execution_api/.*\.py$
require_serial: true
@@ -1307,8 +1307,8 @@ repos:
language: python
entry: >
bash -c '
- uv run -p 3.12 --no-dev --no-progress --active --group codegen
--project apache-airflow-ctl --directory airflow-ctl/ datamodel-codegen &&
- uv run -p 3.12 --no-dev --no-progress --active --group codegen
--project apache-airflow-ctl --directory airflow-ctl/ datamodel-codegen
--input="../airflow-core/src/airflow/api_fastapi/auth/managers/simple/openapi/v2-simple-auth-manager-generated.yaml"
--output="src/airflowctl/api/datamodels/auth_generated.py"'
+ uv run -p 3.12 --no-dev --no-progress --active --group codegen
--package apache-airflow-ctl --directory airflow-ctl/ datamodel-codegen &&
+ uv run -p 3.12 --no-dev --no-progress --active --group codegen
--package apache-airflow-ctl --directory airflow-ctl/ datamodel-codegen
--input="../airflow-core/src/airflow/api_fastapi/auth/managers/simple/openapi/v2-simple-auth-manager-generated.yaml"
--output="src/airflowctl/api/datamodels/auth_generated.py"'
pass_filenames: false
files:
(?x)