eumiro commented on code in PR #34060:
URL: https://github.com/apache/airflow/pull/34060#discussion_r1314631178


##########
scripts/ci/pre_commit/pre_commit_inline_scripts_in_docker.py:
##########
@@ -45,16 +44,16 @@ def insert_content(file_path: Path, content: list[str], 
header: str, footer: str
     SCRIPTS_DOCKER_DIR = AIRFLOW_SOURCES_DIR / "scripts" / "docker"
 
     for file in [DOCKERFILE_FILE, DOCKERFILE_CI_FILE]:
-        for script in listdir(SCRIPTS_DOCKER_DIR):
-            script_content = (SCRIPTS_DOCKER_DIR / 
script).read_text().splitlines(keepends=True)
+        for script in SCRIPTS_DOCKER_DIR.listdir():

Review Comment:
   Should by `iterdir()` actually.



-- 
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]

Reply via email to