From 6bd7dc562e3f63663219bf49f13cc73aadb9dbb6 Mon Sep 17 00:00:00 2001 From: Ben Deane Date: Wed, 15 Oct 2025 09:27:26 -0600 Subject: [PATCH] :art: Update .gitignore Problem: - Cache directories made by various tools can be made in any directory, but are only ignored in the root directory. - Conventional directory names containing "build" or "venv" should be ignored. Solution: - Alter .gitignore to properly ignore cache directories and conventionally-named venv/build directories. --- .gitignore | 43 +++++++++++++++++++++++++------------------ 1 file changed, 25 insertions(+), 18 deletions(-) diff --git a/.gitignore b/.gitignore index a72b385..aa515a5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,19 +1,26 @@ -build/ -/cmake-build-* -/venv -/.vscode -/.idea -/.cache -/.DS_Store -.clang-format -.clang-tidy -.cmake-format.yaml -CMakePresets.json +# ignore all directories that start with . +**/.*/ + +# ignore conventionally-named build directories +**/build*/ +**/*build/ +# and some other build directories +**/cmake-build-*/ + +# ignore conventionally-named python virtual env directories +# (this is only necessary before Python 3.13) +**/venv*/ +**/*venv/ +# and __pycache__ directories +**/__pycache__/ + +# ignore files provided by CICD +/.clang-format +/.clang-tidy +/.cmake-format.yaml +/CMakePresets.json /toolchains -__pycache__ -.mypy_cache -.pytest_cache -.hypothesis -requirements.txt -docs/puppeteer_config.json -docs/mermaid.conf +/mull.yml +/requirements.txt +/docs/puppeteer_config.json +/docs/mermaid.conf