Skip to content

Commit 9bd8c52

Browse files
authored
Update .gitignore file and add a .geminiignore file (#923)
This adds some more patterns to `.gitignore` for some of the tools known to be used by the TFQ developers. Although these sorts of common ignore patterns are better put in an individual user's global gitignore file (something that can be configured 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. This commit also adds an initial `.geminiignore` file for Gemini CLI. Gemini CLI reads `.gitignore` too, but `.geminiignore` takes precedence; this is essential for un-ignoring files that shouldn't be committed to git yet _should_ be visible to Gemini CLI.
1 parent 4658d95 commit 9bd8c52

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

.geminiignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Summary: tell Gemini CLI it should (or should not) ignore certain files and
2+
# folders. Gemini CLI reads .gitignore too, but .geminiignore takes precedence
3+
# -- useful for un-ignoring files that shouldn't be committed to git yet should
4+
# be visible to Gemini CLI. (Note also a different file, .aiexclude, is read by
5+
# Gemini Code Assist.) See https://geminicli.com/docs/cli/gemini-ignore/.
6+
7+
# Don't ignore the Bazel config files created by configure.sh.
8+
!.bazelrc
9+
!.tf_configure.bazelrc

.gitignore

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,13 @@
2424
.idea/*
2525
*.iml
2626

27-
# ignore cache
27+
# ignore caches
2828
*__pycache__/*
2929
*.cache/*
3030
*.ipynb_checkpoints*
3131
.ipynb_checkpoints
32+
.mypy_cache
33+
.pytest_cache
3234

3335
# Mac only
3436
.DS_Store
@@ -53,8 +55,11 @@ venv/
5355
quantum_env/
5456
quantum_venv/
5557

56-
# ignore emacs temp files
57-
*#
58+
# Ignore Emacs backup, checkpoint, and other files.
59+
.\#*
60+
\#*\#
61+
.git/COMMIT_EDITMSG
62+
TAGS
5863

5964
# vscode
6065
.vscode/*

0 commit comments

Comments
 (0)