-
Couldn't load subscription status.
- Fork 0
Add interfaces #1
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
Conversation
Reviewer's Guide by SourceryThis PR introduces an Interface decorator implementation along with its supporting test cases. The implementation allows for interface-like behavior in Python, enforcing method implementation and signature matching at class definition time. Class diagram for the new Interface and InterfaceError classesclassDiagram
class InterfaceError {
<<Exception>>
}
class Interface {
- required_methods
+ __init__(*klass)
+ __call__(klass)
+ _get_methods(*klass) static
}
Interface --> InterfaceError : raises
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @kaliv0 - I've reviewed your changes - here's some feedback:
Overall Comments:
- Consider adding documentation for the new interface validation feature
- This change introduces a new feature (interface validation) which typically warrants a minor version bump (1.1.0) rather than a patch version bump (1.0.1) according to semver
Here's what I looked at during the review
- 🟡 General issues: 1 issue found
- 🟢 Security: all looks good
- 🟡 Testing: 1 issue found
- 🟡 Complexity: 1 issue found
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
abbb789 to
93568c1
Compare
93568c1 to
14bae33
Compare
Summary by Sourcery
Add an Interface decorator to enforce method presence and signature compliance, along with tests to validate its functionality. Enhance the CI workflow with a line-length configuration and update project metadata in pyproject.toml.
New Features:
Enhancements:
CI:
Documentation:
Tests: