-
Notifications
You must be signed in to change notification settings - Fork 19
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
More linting #355
More linting #355
Conversation
ssssarah
commented
Oct 30, 2023
•
edited
Loading
edited
- rm import from kgforge.commons.archetypes and kgforge.core and target specific files to avoid cyclic dependencies
- When catching an exception and re-raising a different one, raise from the one that was caught to keep the stack trace and facilitate debugging
- not_supported to return exception to be raised
- not_supported raised in specialisations, not core. In core, methods defined as abstract. Motivation: when implementing one of the archetypes, it's simpler to extend it and to have your IDE generate all abstract methods than it is to have them "implemented for you as not implemented" and having to go to the archetype definition to retrieve the method signatures to override. Moreover, it's better to have a complete visual of unimplemented functionality in one's specialisation, rather than to have to go back to the archetype to see methods that have yet to be implemented
- rm redefinition of constructor in subclasses if no additional logic is added
- rm raise Exception, raise more specific exceptions
- Raising linting threshold to 9.0
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #355 +/- ##
==========================================
+ Coverage 74.42% 74.46% +0.03%
==========================================
Files 100 100
Lines 6213 6293 +80
==========================================
+ Hits 4624 4686 +62
- Misses 1589 1607 +18
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
… cyclic dependencies
f65cb04
to
604eed6
Compare
db9fba5
to
9cab93f
Compare
59026ff
to
3c9010d
Compare
53f2b95
to
bd84649
Compare
These are small but wide changes, can we merge this after the archetypes change? |
Yeah of course, archetypes > everything else |
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.
Good with me.