Skip to content

Conversation

@ariebovenberg
Copy link
Contributor

@ariebovenberg ariebovenberg commented Jan 18, 2022

Summary

@zsol requested I add slotscheck to the CI.

Slotscheck prevents mistakes in __slots__ from creeping in again. Fixing slots in #605 resulted in big memory savings.

Instructions for pre-commit are documented here.

Test Plan

I've added slotscheck to the github build action. Let me know if you'd like it mentioned in CONTRIBUTING.md or README.rst

fixes #574

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 18, 2022
@ariebovenberg
Copy link
Contributor Author

Hmm, I see slotscheck would need to add py36 support. It's EOL but I'm assuming you won't be dropping 3.6 anytime soon?

@codecov-commenter
Copy link

codecov-commenter commented Jan 18, 2022

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.78%. Comparing base (9563b4a) to head (ef4d363).
Report is 316 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #615   +/-   ##
=======================================
  Coverage   94.78%   94.78%           
=======================================
  Files         245      245           
  Lines       25238    25238           
=======================================
  Hits        23921    23921           
  Misses       1317     1317           

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

Copy link
Contributor

@zsol zsol left a comment

Choose a reason for hiding this comment

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

Thank you!

Yes, please add a note in README.rst about running slotscheck.

@ariebovenberg
Copy link
Contributor Author

An interesting failure -- investigating 👀

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

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Slots added to many classes, but not their bases

4 participants