Running tests creates __pycache__ directories (e.g., scripts/__pycache__) that are not tracked by Git. This causes p10k (and other shell prompts) to indicate that the repository has untracked files.
Add __pycache__/ and other Python cache file patterns to the project’s .gitignore file to ensure they are ignored and do not trigger “untracked files” status.
.gitignore to ignore Python bytecode and cache directories.__pycache__ directories are not tracked.__pycache__/*.py[cod]*$py.class