Skip to content

Exclude private variables - #17

Merged
jon-edward merged 2 commits into
jon-edward:mainfrom
mdboom:private-variables
May 6, 2026
Merged

jon-edward merged 2 commits into
jon-edward:mainfrom
mdboom:private-variables

Conversation

@mdboom

@mdboom mdboom commented May 6, 2026

Copy link
Copy Markdown
Contributor

This extends the existing filtering of private functions to private variables (assignments) and classes.

I know Cython has better ways to make things really private. In CUDA core we often expose "private by convention" things to make testing from pure Python easier, so it's nice to have them but exclude them from public API.

@codecov

codecov Bot commented May 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.03%. Comparing base (2172c40) to head (4c55447).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #17      +/-   ##
==========================================
+ Coverage   95.00%   95.03%   +0.02%     
==========================================
  Files          22       22              
  Lines        1202     1208       +6     
==========================================
+ Hits         1142     1148       +6     
  Misses         60       60              

☔ 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.

@jon-edward

Copy link
Copy Markdown
Owner

Looks great, hadn't initially considered private vars and classes as needing to be hidden by the public Python API but I get the rationale. Thank you for adding tests!

@jon-edward
jon-edward merged commit 17bb078 into jon-edward:main May 6, 2026
16 checks passed
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.

2 participants