Skip to content

Commit d346df1

Browse files
authored
don't delete .vscode/ when running breeze doctor (apache#48606)
* ignore deleting .vscode/ in breeze doctor
1 parent cc54a19 commit d346df1

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

dev/breeze/src/airflow_breeze/commands/main_command.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,10 +303,22 @@ def cleanup(all: bool):
303303
run_command(["pip", "uninstall", "apache-airflow", "--yes"], check=False)
304304
elif given_answer == Answer.QUIT:
305305
sys.exit(0)
306-
get_console().print("Removing build file and untracked files")
306+
get_console().print(
307+
"Removing build file and untracked files. This also removes files ignored in .gitignore"
308+
)
307309
given_answer = user_confirm("Are you sure with the removal of build files?")
308310
if given_answer == Answer.YES:
309-
system_prune_command_to_execute = ["git", "clean", "-fdx", "-e", ".idea/", "-e", ".venv/"]
311+
system_prune_command_to_execute = [
312+
"git",
313+
"clean",
314+
"-fdx",
315+
"-e",
316+
".idea/",
317+
"-e",
318+
".vscode/",
319+
"-e",
320+
".venv/",
321+
]
310322
run_command(
311323
system_prune_command_to_execute,
312324
check=False,

0 commit comments

Comments
 (0)