Skip to content

Fix .gitignore to properly exclude ipynb checkpoints - #460

Merged
rkingsbury merged 1 commit into
mainfrom
fix-gitignore-ipynb-checkpoints
Aug 12, 2026
Merged

Fix .gitignore to properly exclude ipynb checkpoints#460
rkingsbury merged 1 commit into
mainfrom
fix-gitignore-ipynb-checkpoints

Conversation

@rkingsbury

Copy link
Copy Markdown
Member

Problem

The .gitignore pattern intended to exclude Jupyter checkpoint directories was */.ipynb_checkpoints/*. Because it contains slashes it is anchored and only matches a checkpoint directory exactly one level below the repo root, and even then only the files inside it. Checkpoints nested deeper — e.g. docs/examples/.ipynb_checkpoints/ — were never excluded, so five checkpoint notebooks had been committed.

Fix

  • Replace */.ipynb_checkpoints/* with .ipynb_checkpoints/, which matches the checkpoint directory (and its contents) at any depth.
  • Remove the five checkpoint files already tracked under docs/examples/.ipynb_checkpoints/.

🤖 Generated with Claude Code

The pattern `*/.ipynb_checkpoints/*` is anchored and only matches
checkpoint directories exactly one level deep, ignoring the files
inside them but not the directory itself. Checkpoints nested deeper
(e.g. docs/examples/.ipynb_checkpoints/) were never excluded and got
committed.

Replace it with `.ipynb_checkpoints/`, which matches the checkpoint
directory at any depth, and remove the checkpoint files that had
already been committed under docs/examples/.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@rkingsbury
rkingsbury merged commit 1e80589 into main Aug 12, 2026
15 checks passed
@codecov

codecov Bot commented Aug 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.54%. Comparing base (dd1be5f) to head (d6f2800).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #460   +/-   ##
=======================================
  Coverage   87.54%   87.54%           
=======================================
  Files          14       14           
  Lines        1951     1951           
  Branches      340      340           
=======================================
  Hits         1708     1708           
  Misses        192      192           
  Partials       51       51           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant