From 6b26ec33abc596c839fc0b8da89930465a1702a0 Mon Sep 17 00:00:00 2001 From: ViperEkura <3081035982@qq.com> Date: Thu, 7 May 2026 14:14:15 +0800 Subject: [PATCH] chore: switch .gitignore to whitelist mechanism (only .py, .md, .gitignore) --- .gitignore | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index 96bcdec..8eb56bc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,10 +1,10 @@ -__pycache__/ -*.pyc -*.pyo -.venv/ -venv/ -*.egg-info/ -dist/ -build/ -output/ -.DS_Store +# Ignore everything by default +* + +# Recurse into directories +!*/ + +# Whitelist: only source code and docs +!*.py +!*.md +!.gitignore