Currently the gitignore does not contain app/__pycache__ which causes the files to be tracked. The application however needs to ignore the files in this directory.
Description
Details
| Subject | Repo | Branch | Lines +/- | |
|---|---|---|---|---|
| Remove app pycache files from git | labs/tools/wdaudiolex-be | main | +1 -0 |
Event Timeline
Change #1132124 had a related patch set uploaded (by Bovimacoco; author: Bovimacoco):
[labs/tools/wdaudiolex-be@main] T390368 and T386329
Change #1132125 had a related patch set uploaded (by Bovimacoco; author: Bovimacoco):
[labs/tools/wdaudiolex-be@main] T386329 and this T390368
Change #1132126 had a related patch set uploaded (by Bovimacoco; author: Bovimacoco):
[labs/tools/wdaudiolex-be@main] T386329 and T390368 and T386326
Change #1132161 had a related patch set uploaded (by Bovimacoco; author: Bovimacoco):
[labs/tools/wdaudiolex-be@main] Task=T386329 Rearranging the Readme files
Change #1132165 had a related patch set uploaded (by Bovimacoco; author: Bovimacoco):
[labs/tools/wdaudiolex-be@main] T386329 = Remove app pycache files from git
Change #1133587 had a related patch set uploaded (by Bovimacoco; author: Bovimacoco):
[labs/tools/wdaudiolex-be@main] T386329 = Remove app pycache files from git bug: T386329
Thanks for reporting this.
The existing *__pycache__/ rule already ensures that any new files generated when running the Flask script are ignored. However, the issue is that app/__pycache__ was already tracked before this rule was applied.
The best solution would be to delete this directory entirely, so it's removed from Git history. This way, when the folder is created again locally, Git won't track it.
Adding app/__pycache__ to .gitignore won’t change anything since the general rule is already in place.
Change #1132124 abandoned by Aklapper:
[labs/tools/wdaudiolex-be@main] T390368 and T386329
Reason:
Superseded by 1132125, then 1132126
Change #1132125 abandoned by Aklapper:
[labs/tools/wdaudiolex-be@main] T386329 and this T390368
Reason:
Superseded by 1132126
Change #1133587 had a related patch set uploaded (by Aklapper; author: Bovimacoco):
[labs/tools/wdaudiolex-be@main] Remove app pycache files from git
Change #1132126 abandoned by Aklapper:
[labs/tools/wdaudiolex-be@main] T386329 and T390368 and T386326
Reason:
See 1132164, 1133572, 1132161, 1132165 instead
Change #1132161 abandoned by Wandji collins:
[labs/tools/wdaudiolex-be@main] T386329:Rearranging the Readme files
Reason:
Duplicate implementation
Change #1132165 merged by Wandji collins:
[labs/tools/wdaudiolex-be@main] T386329: Remove app pycache files from git
Change #1133587 abandoned by Wandji collins:
[labs/tools/wdaudiolex-be@main] Remove app pycache files from git
Reason:
This is duplicate change