Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1341,7 +1341,15 @@ repos:
- id: generate-openapi-spec
name: Generate the FastAPI API spec
language: python
entry: ./scripts/ci/pre_commit/update_fastapi_api_spec.py
entry: ./scripts/ci/pre_commit/generate_openapi_spec.py
pass_filenames: false
files: ^airflow-core/src/airflow/api_fastapi/.*\.py$|^airflow-core/src/airflow/api_fastapi/auth/managers/simple/.*\.py$|^providers/fab/src/airflow/providers/fab/auth_manager/api_fastapi/.*\.py$
exclude: ^airflow-core/src/airflow/api_fastapi/execution_api/.*
additional_dependencies: ['rich>=12.4.4', 'openapi-spec-validator>=0.7.1']
- id: generate-openapi-spec-fab
name: Generate the FastAPI API spec for FAB
language: python
entry: ./scripts/ci/pre_commit/generate_openapi_spec_fab.py
pass_filenames: false
files: ^airflow-core/src/airflow/api_fastapi/.*\.py$|^airflow-core/src/airflow/api_fastapi/auth/managers/simple/.*\.py$|^providers/fab/src/airflow/providers/fab/auth_manager/api_fastapi/.*\.py$
exclude: ^airflow-core/src/airflow/api_fastapi/execution_api/.*
Expand Down
2 changes: 2 additions & 0 deletions contributing-docs/08_static_code_checks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,8 @@ require Breeze Docker image to be built locally.
+-----------------------------------------------------------+--------------------------------------------------------+---------+
| generate-openapi-spec | Generate the FastAPI API spec | * |
+-----------------------------------------------------------+--------------------------------------------------------+---------+
| generate-openapi-spec-fab | Generate the FastAPI API spec for FAB | * |
+-----------------------------------------------------------+--------------------------------------------------------+---------+
| generate-pypi-readme | Generate PyPI README | |
+-----------------------------------------------------------+--------------------------------------------------------+---------+
| generate-tasksdk-datamodels | Generate Datamodels for TaskSDK client | * |
Expand Down
4 changes: 2 additions & 2 deletions dev/breeze/doc/images/output-commands.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading