From c59419a29ab83c57d4f653f289eba6fa484c13c5 Mon Sep 17 00:00:00 2001 From: mhucka Date: Wed, 24 Jun 2026 16:21:28 +0000 Subject: [PATCH 1/9] Ignore more things in `.dockerignore` --- .dockerignore | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/.dockerignore b/.dockerignore index 8e02efbf0..cfdd63555 100644 --- a/.dockerignore +++ b/.dockerignore @@ -14,3 +14,37 @@ # Ignore this in case the user previously did a "pip install -e ." qsimcirq.egg-info + +# Additional generic things to ignore. +**/*.bak +**/*.DS_Store +**/*.log +**/*.py,cover +**/*.pyc +**/*.swp +**/*.tmp +**/*.whl +**/.*_cache/ +**/.git/ +**/.ipynb_checkpoints/ +**/__pycache__/ +*.cover +*.coverage +*.coverage.* +*.egg +*.egg-info/ +*~ +.coverage +.dockerignore +.env* +.github/ +.idea/ +.venv/ +.vscode/ +bazel-* +build/ +coverage.xml +dist/ +env/ +jupyter_kernel.lock +venv/ From 9db2c6b74a0ccddb022fa126d3c92925a20c8425 Mon Sep 17 00:00:00 2001 From: mhucka Date: Wed, 24 Jun 2026 16:21:43 +0000 Subject: [PATCH 2/9] Tell Gemini to ignore Emacs versioned backups --- .geminiignore | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.geminiignore b/.geminiignore index 947c71cec..bbc9603ef 100644 --- a/.geminiignore +++ b/.geminiignore @@ -19,3 +19,7 @@ # Not in .gitignore because it's a git submodule. Tell Gemini to ignore it. /tests/googletest/ + +# The next one (for Emacs versioned backups) _should_ be covered by *~ in our +# .gitignore, but Gemini currently doesn't seem to interpret *~ that way. +*.~*~ From 97eab3fcf535aad46e203cec32a2ec3e95db7366 Mon Sep 17 00:00:00 2001 From: mhucka Date: Tue, 1 Sep 2026 03:33:57 +0000 Subject: [PATCH 3/9] Remove redundancies from `.dockerignore` --- .dockerignore | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/.dockerignore b/.dockerignore index cfdd63555..0d0cf3c7d 100644 --- a/.dockerignore +++ b/.dockerignore @@ -12,39 +12,37 @@ # See the License for the specific language governing permissions and # limitations under the License. -# Ignore this in case the user previously did a "pip install -e ." -qsimcirq.egg-info - -# Additional generic things to ignore. +**/*~ **/*.bak **/*.DS_Store **/*.log -**/*.py,cover **/*.pyc **/*.swp **/*.tmp **/*.whl -**/.*_cache/ +**/*.egg +**/*.egg-info/ +**/*_cache/ **/.git/ **/.ipynb_checkpoints/ **/__pycache__/ -*.cover -*.coverage -*.coverage.* -*.egg -*.egg-info/ -*~ -.coverage + +# Coverage & test artifacts. +**/*.cover +**/*.py,cover +**/.coverage* +coverage.xml + +# Environments & IDEs. .dockerignore -.env* .github/ .idea/ .venv/ .vscode/ +venv/ + +# Build outputs & tool caches. bazel-* build/ -coverage.xml dist/ -env/ jupyter_kernel.lock -venv/ From e9ab5d45bd7abacd0b208cb4d62d538fb91f1048 Mon Sep 17 00:00:00 2001 From: mhucka Date: Tue, 1 Sep 2026 03:37:36 +0000 Subject: [PATCH 4/9] Additional improvements --- .dockerignore | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.dockerignore b/.dockerignore index 0d0cf3c7d..c3c214bb6 100644 --- a/.dockerignore +++ b/.dockerignore @@ -35,14 +35,26 @@ coverage.xml # Environments & IDEs. .dockerignore +.env* .github/ .idea/ .venv/ .vscode/ +env/ venv/ # Build outputs & tool caches. +.eggs/ bazel-* build/ dist/ jupyter_kernel.lock +CMakeCache.txt +**/CMakeFiles/ + +# Native compilation artifacts. +**/*.o +**/*.a +**/*.so +**/*.dylib +**/*.dll From bfcc513c81cafd44c2b9c6fa758c12260e7f889b Mon Sep 17 00:00:00 2001 From: mhucka Date: Tue, 1 Sep 2026 03:49:37 +0000 Subject: [PATCH 5/9] Yet more improvements courtesy of Gemini 3.7 --- .dockerignore | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.dockerignore b/.dockerignore index c3c214bb6..10a74e595 100644 --- a/.dockerignore +++ b/.dockerignore @@ -14,7 +14,7 @@ **/*~ **/*.bak -**/*.DS_Store +**/.DS_Store **/*.log **/*.pyc **/*.swp @@ -31,7 +31,7 @@ **/*.cover **/*.py,cover **/.coverage* -coverage.xml +**/coverage.xml # Environments & IDEs. .dockerignore @@ -48,9 +48,12 @@ venv/ bazel-* build/ dist/ -jupyter_kernel.lock -CMakeCache.txt +eigen/ +*.tar.gz +**/jupyter_kernel.lock +**/CMakeCache.txt **/CMakeFiles/ +**/cmake_install.cmake # Native compilation artifacts. **/*.o @@ -58,3 +61,7 @@ CMakeCache.txt **/*.so **/*.dylib **/*.dll +**/*.pyd +**/*.x +**/*.mod +**/*.dSYM/ From add9ab6eebd1a4e32107b4dd8724bf353dd91a80 Mon Sep 17 00:00:00 2001 From: mhucka Date: Tue, 1 Sep 2026 05:37:16 +0000 Subject: [PATCH 6/9] Put lists in alphabetical order --- .dockerignore | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.dockerignore b/.dockerignore index 10a74e595..e15a02014 100644 --- a/.dockerignore +++ b/.dockerignore @@ -12,17 +12,17 @@ # See the License for the specific language governing permissions and # limitations under the License. -**/*~ **/*.bak -**/.DS_Store +**/*.egg +**/*.egg-info/ **/*.log **/*.pyc **/*.swp **/*.tmp **/*.whl -**/*.egg -**/*.egg-info/ **/*_cache/ +**/*~ +**/.DS_Store **/.git/ **/.ipynb_checkpoints/ **/__pycache__/ @@ -44,24 +44,24 @@ env/ venv/ # Build outputs & tool caches. +**/cmake_install.cmake +**/CMakeCache.txt +**/CMakeFiles/ +**/jupyter_kernel.lock +*.tar.gz .eggs/ bazel-* build/ dist/ eigen/ -*.tar.gz -**/jupyter_kernel.lock -**/CMakeCache.txt -**/CMakeFiles/ -**/cmake_install.cmake # Native compilation artifacts. -**/*.o **/*.a -**/*.so -**/*.dylib **/*.dll +**/*.dSYM/ +**/*.dylib +**/*.mod +**/*.o **/*.pyd +**/*.so **/*.x -**/*.mod -**/*.dSYM/ From c6e5107f4cdcce354b98dc5f67f6940810514249 Mon Sep 17 00:00:00 2001 From: mhucka Date: Tue, 1 Sep 2026 06:17:51 +0000 Subject: [PATCH 7/9] Even more updates --- .dockerignore | 49 ++++++++++++++++++++++++++----------------------- 1 file changed, 26 insertions(+), 23 deletions(-) diff --git a/.dockerignore b/.dockerignore index e15a02014..11f71bd20 100644 --- a/.dockerignore +++ b/.dockerignore @@ -12,56 +12,59 @@ # See the License for the specific language governing permissions and # limitations under the License. -**/*.bak -**/*.egg -**/*.egg-info/ -**/*.log -**/*.pyc -**/*.swp -**/*.tmp -**/*.whl -**/*_cache/ -**/*~ -**/.DS_Store -**/.git/ -**/.ipynb_checkpoints/ -**/__pycache__/ - # Coverage & test artifacts. **/*.cover **/*.py,cover -**/.coverage* +**/.coverage +**/.coverage.* **/coverage.xml # Environments & IDEs. .dockerignore .env* +.git/ .github/ .idea/ +.python-version .venv/ .vscode/ env/ venv/ # Build outputs & tool caches. -**/cmake_install.cmake +**/.*_cache +**/.ipynb_checkpoints/ +**/__pycache__/ **/CMakeCache.txt **/CMakeFiles/ -**/jupyter_kernel.lock -*.tar.gz -.eggs/ bazel-* build/ dist/ eigen/ -# Native compilation artifacts. +# Compilation artifacts. **/*.a **/*.dll -**/*.dSYM/ **/*.dylib +**/*.exe +**/*.lib **/*.mod **/*.o -**/*.pyd +**/*.obj +**/*.py[cod] **/*.so **/*.x + +# Local PyPI config files. +.pypirc + +# Miscellaneous other files. +**/*.bak +**/*.egg +**/*.egg-info/ +**/*.log +**/*.swp +**/*.tmp +**/*.whl +**/.DS_Store +**/.gemini/ From 3d1201d15b17af262248ad8dd089af686314f024 Mon Sep 17 00:00:00 2001 From: mhucka Date: Wed, 2 Sep 2026 03:36:47 +0000 Subject: [PATCH 8/9] Remove some things that this project doesn't use --- .gitignore | 3 --- 1 file changed, 3 deletions(-) diff --git a/.gitignore b/.gitignore index 7eee8e4e8..b5759ccc1 100644 --- a/.gitignore +++ b/.gitignore @@ -38,12 +38,9 @@ ipython_config.py .cache/ .dmypy.json .mypy_cache/ -.nox/ .pytest_cache/ .python-version -.pytype/ .ruff_cache/ -.tox/ __pycache__/ build/ coverage.xml From fb7662256dfa1ccfce360787cbf7190ad592dfcc Mon Sep 17 00:00:00 2001 From: mhucka Date: Wed, 2 Sep 2026 03:44:25 +0000 Subject: [PATCH 9/9] Further improvements to .dockerignore --- .dockerignore | 46 +++++++++++++++++++++++++++++++--------------- 1 file changed, 31 insertions(+), 15 deletions(-) diff --git a/.dockerignore b/.dockerignore index 11f71bd20..33f7c5c6b 100644 --- a/.dockerignore +++ b/.dockerignore @@ -12,7 +12,11 @@ # See the License for the specific language governing permissions and # limitations under the License. +# Git metadata (wildcarded because this project uses a git submodule). +**/.git + # Coverage & test artifacts. +**/*.benchmarks **/*.cover **/*.py,cover **/.coverage @@ -22,28 +26,35 @@ # Environments & IDEs. .dockerignore .env* -.git/ -.github/ -.idea/ +.gemini* +.github +.idea .python-version -.venv/ -.vscode/ -env/ -venv/ +.venv +.vscode +CirqDevEnv +env +venv # Build outputs & tool caches. **/.*_cache -**/.ipynb_checkpoints/ -**/__pycache__/ +**/.cache +**/.eggs +**/.ipynb_checkpoints +**/__pycache__ +**/cmake_install.cmake **/CMakeCache.txt -**/CMakeFiles/ +**/CMakeFiles bazel-* -build/ -dist/ -eigen/ +build +dist +eigen +sdist +wheelhouse # Compilation artifacts. **/*.a +**/*.dSYM **/*.dll **/*.dylib **/*.exe @@ -51,6 +62,7 @@ eigen/ **/*.mod **/*.o **/*.obj +**/*.out **/*.py[cod] **/*.so **/*.x @@ -58,13 +70,17 @@ eigen/ # Local PyPI config files. .pypirc +# Things that don't need to be in a Docker inage. +dev_tools/ci +docs + # Miscellaneous other files. +**/*~ **/*.bak **/*.egg -**/*.egg-info/ +**/*.egg-info **/*.log **/*.swp **/*.tmp **/*.whl **/.DS_Store -**/.gemini/