Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add slotscheck to CI #615

Merged
merged 6 commits into from
Jan 20, 2022
Merged

add slotscheck to CI #615

merged 6 commits into from
Jan 20, 2022

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
Member

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

requirements-dev.txt Outdated Show resolved Hide resolved
@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