josh-fell commented on code in PR #54258:
URL: https://github.com/apache/airflow/pull/54258#discussion_r2273563610
##########
contributing-docs/17_architecture_diagrams.rst:
##########
@@ -44,19 +44,19 @@ You can also generate all diagrams by:
.. code-block:: bash
- pre-commit run generate-airflow-diagrams
+ prek run generate-airflow-diagrams
or with Breeze:
.. code-block:: bash
- breeze static-checks --type generate-airflow-diagrams --all-files
+ preflifigit run generate-airflow-diagrams --all-files
Review Comment:
```suggestion
prek run generate-airflow-diagrams --all-files
```
##########
providers/common/sql/src/airflow/providers/common/sql/README_API.md:
##########
@@ -40,22 +40,22 @@ to review the changes and manually regenerate the stub
files.
The details of the workflow are as follows:
1) The previous API is stored in the (committed to repository) stub files.
-2) Every time when common.sql Python files are modified the
`update-common-sql-api-stubs` pre-commit
+2) Whenever common.sql Python files are modified the
`update-common-sql-api-stubs` prek hoom
Review Comment:
```suggestion
2) Whenever common.sql Python files are modified the
`update-common-sql-api-stubs` prek hook
```
##########
scripts/ci/prek/check_i18n_json.py:
##########
@@ -17,7 +17,7 @@
# under the License.
"""
-Pre-commit script to check that all .json files in
airflow-core/src/airflow/ui/public/i18n/locales/
+Prek hoo to check that all .json files in
airflow-core/src/airflow/ui/public/i18n/locales/
Review Comment:
```suggestion
Prek hook to check that all .json files in
airflow-core/src/airflow/ui/public/i18n/locales/
```
##########
scripts/ci/prek/compile_ui_assets_dev.py:
##########
@@ -22,13 +22,13 @@
import sys
from pathlib import Path
-sys.path.insert(0, str(Path(__file__).parent.resolve())) # make sure
common_precommit_utils is imported
-from common_precommit_utils import AIRFLOW_CORE_SOURCES_PATH, AIRFLOW_ROOT_PATH
+sys.path.insert(0, str(Path(__file__).parent.resolve())) # make sure
common_prek_utils is imported
+from common_prek_utils import AIRFLOW_CORE_SOURCES_PATH, AIRFLOW_ROOT_PATH
-# NOTE!. This script is executed from node environment created by pre-commit
and this environment
+# NOTE!. This script is executed from a node environment created by a prek
hook, and this environment
# Cannot have additional Python dependencies installed. We should not import
any of the libraries
-# here that are not available in stdlib! You should not import
common_precommit_utils.py here because
-# They are importing rich library which is not available in the node
environment.
+# here that are not available in stdlib! You should not import
common_prek_utils.py here because
+# They are importing the rich library which is not available in the node
environment.
Review Comment:
```suggestion
# they are importing the rich library which is not available in the node
environment.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]