Skip to content

Streamline .gitignore file#7992

Merged
pavoljuhas merged 11 commits intoquantumlib:mainfrom
mhucka:fix-gitignore
Apr 8, 2026
Merged

Streamline .gitignore file#7992
pavoljuhas merged 11 commits intoquantumlib:mainfrom
mhucka:fix-gitignore

Conversation

@mhucka
Copy link
Copy Markdown
Contributor

@mhucka mhucka commented Mar 30, 2026

This removes some patterns that are either unnecessary or belong in a user's editor configurations.

@github-actions github-actions bot added the size: S 10< lines changed <50 label Mar 30, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 30, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.63%. Comparing base (3175c9d) to head (89c3193).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7992      +/-   ##
==========================================
- Coverage   99.63%   99.63%   -0.01%     
==========================================
  Files        1110     1110              
  Lines       99755    99755              
==========================================
- Hits        99394    99393       -1     
- Misses        361      362       +1     

☔ View full report in Codecov by Sentry.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mhucka mhucka marked this pull request as ready for review March 30, 2026 21:44
@mhucka mhucka requested review from a team and vtomole as code owners March 30, 2026 21:44
@mhucka mhucka requested review from dstrain115 and pavoljuhas and removed request for dstrain115 March 30, 2026 21:44
Copy link
Copy Markdown
Collaborator

@pavoljuhas pavoljuhas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let us drop caches that already write their gitignore.

.gitignore Outdated
.pytest_cache/*
# ignore caches
.cache/
.mypy_cache
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For symmetry with others

NVM - let us remove mypy_cache completely.

Suggested change
.mypy_cache
.mypy_cache/

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The suggested edit in your last comment has .mypy_cache/, but your comment says to remove it. Is the suggested edit an accidental inclusion?

mhucka and others added 6 commits March 31, 2026 14:32
Pytest automatically creates a `.gitignore` file inside the
`.pytest_cache` directory to prevent its contents from being tracked by
Git; thus, a separate entry is not needed here. Ditto for Mypy and Ruff.
None of the dev tools used for Cirq seem to generate a .cache directory.
gitignore would be to handle temporary files that are from Python, unit
tests, QA tools that we use, packaging and docs build files. Other
files and directories that are produced by people's tools should be up
to people to configure via editor settings or personal global
.gitignores.
This is another thing that is not really a Cirq project item and should
be put in a different place.
@mhucka mhucka requested a review from pavoljuhas April 8, 2026 16:17
Copy link
Copy Markdown
Collaborator

@pavoljuhas pavoljuhas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please put back the /out pattern. Otherwise LGTM.

@mhucka mhucka changed the title Fix globs in .gitignore and add more patterns. Streamline .gitignore file Apr 8, 2026
@pavoljuhas pavoljuhas added this pull request to the merge queue Apr 8, 2026
Merged via the queue into quantumlib:main with commit 3f054e8 Apr 8, 2026
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: S 10< lines changed <50

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants