Skip to content

Improve docstring CI#700

Open
david-pl wants to merge 6 commits intomainfrom
david/improve-docstring-ci
Open

Improve docstring CI#700
david-pl wants to merge 6 commits intomainfrom
david/improve-docstring-ci

Conversation

@david-pl
Copy link
Collaborator

@david-pl david-pl commented Feb 4, 2026

This changes the docstring CI to only check the docstrings of files that were changed within a PR. Also, I simplified it a bit so it only checks for missing docstrings, not specific styling etc.

So now, whenever you change a file, the pre-commit and CI will make you add docstrings throughout the entire file. Hopefully this will allow us to incrementally improve the docstring situation.

Some open questions:

  • Right now, I'm skipping the rule D100, which checks for missing docstrings in public modules, which we don't have anywhere. Do we want to have those? This would certainly make the automatically built API reference look nicer.
  • Do we want to enforce some specific style?

@codecov
Copy link

codecov bot commented Feb 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@github-actions
Copy link
Contributor

github-actions bot commented Feb 4, 2026

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
10980 9690 88% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
src/bloqade/analysis/fidelity/analysis.py 100% 🟢
TOTAL 100% 🟢

updated for commit: 508652b by action🐍

@david-pl david-pl requested a review from Roger-luo February 4, 2026 14:43
@david-pl david-pl marked this pull request as ready for review February 4, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant