From 8c38b7985617b5fcc9af7ba8a5546225e08edfc3 Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Sun, 25 Oct 2026 10:45:50 +0200 Subject: [PATCH] Ignore Python bytecode caches Importing the playbook's Python scripts or tests (e.g. with `python -m unittest`) creates __pycache__ directories, which show up as untracked files and fail the REUSE pre-commit hook. The same change in mash-playbook: https://github.com/mother-of-all-self-hosting/mash-playbook/commit/53bb9f27 Co-Authored-By: Claude Opus 5.5 (1M context) --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 895407e25..f8e527ad7 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,6 @@ # ignore roles pulled by ansible-galaxy /roles/galaxy/* !/roles/galaxy/.gitkeep + +# ignore Python bytecode caches (e.g. from running tests with `python -m unittest`) +__pycache__/