From c76deec2d087bdf2d9e97f72d45a9cfe740a98ee Mon Sep 17 00:00:00 2001 From: mhucka Date: Mon, 8 Dec 2025 06:28:02 +0000 Subject: [PATCH 1/3] Update `.gitignore` file with more patterns This adds some more files that are common for some of the tools known to be used by the TFQ maintainers. Although common ignore patterns should be put in an individual user's global gitignore file (something that can be congigured in git), it turns out that Gemini CLI also reads the `.gitignore` to determine what files to ignore in a project. Making the project `.gitignore` file more comprehensive thus helps us use AI code assistants more effectively. --- .gitignore | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 7f25e7e0e..fe2cb5c45 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================ + *.pickle *.txt *.bak @@ -23,10 +24,13 @@ .idea/* *.iml -# ignore cache +# ignore caches *__pycache__/* *.cache/* *.ipynb_checkpoints* +.ipynb_checkpoints +.mypy_cache +.pytest_cache # Mac only .DS_Store @@ -36,17 +40,23 @@ # Bazel files /bazel-* -# custom bazelrc for the TF op, created in configure.sh + +# Files created by configure.sh. .bazelrc +.tf_configure.bazelrc # Local TF Copy tensorflow/* -# virtual enviroments +# Python virtual enviroments venv/* +quantum_env/* -# ignore emacs temp files -*# +# Ignore Emacs backup and checkpoint files. +.\#* +\#*\# +.git/COMMIT_EDITMSG +TAGS # vscode .vscode/* From d1f7d122faa2f07d17c8c9bcf8a04335f921188f Mon Sep 17 00:00:00 2001 From: mhucka Date: Mon, 8 Dec 2025 06:32:41 +0000 Subject: [PATCH 2/3] Trivial clarification --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index fe2cb5c45..779967ca2 100644 --- a/.gitignore +++ b/.gitignore @@ -52,7 +52,7 @@ tensorflow/* venv/* quantum_env/* -# Ignore Emacs backup and checkpoint files. +# Ignore Emacs backup, checkpoint, and other files. .\#* \#*\# .git/COMMIT_EDITMSG From a1ebd7122bb7cf1426907e760ed7e43201abe664 Mon Sep 17 00:00:00 2001 From: mhucka Date: Mon, 8 Dec 2025 06:52:16 +0000 Subject: [PATCH 3/3] Add a `.geminiignore` file --- .geminiignore | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .geminiignore diff --git a/.geminiignore b/.geminiignore new file mode 100644 index 000000000..e9d77be50 --- /dev/null +++ b/.geminiignore @@ -0,0 +1,9 @@ +# Summary: tell Gemini CLI it should (or should not) ignore certain files and +# folders. Gemini CLI reads .gitignore too, but .geminiignore takes precedence +# -- useful for un-ignoring files that shouldn't be committed to git yet should +# be visible to Gemini CLI. (Note also a different file, .aiexclude, is read by +# Gemini Code Assist.) See https://geminicli.com/docs/cli/gemini-ignore/. + +# Don't ignore the Bazel config files created by configure.sh. +!.bazelrc +!.tf_configure.bazelrc