-
Notifications
You must be signed in to change notification settings - Fork 4
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
fix all files using pre-commit #1170
fix all files using pre-commit #1170
Conversation
common/business_rules.py
Outdated
@@ -132,8 +132,8 @@ def get_linked_models( | |||
|
|||
:param model TrackedModel: Get models linked to this model instance | |||
:param transaction Transaction: Get latest approved versions of linked | |||
models as of this transaction | |||
:rtype Iterator[TrackedModel]: The linked models | |||
models as of this transaction :rtype Iterator[TrackedModel]: The |
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.
Is the :rtype
meant to be on a new line, in keeping with the :param
lines?
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.
Fix applied
common/business_rules.py
Outdated
@@ -226,8 +228,8 @@ def skip_when_update_type(cls: Type[BusinessRule], update_types: Iterable[Update | |||
""" | |||
Skip business rule validation for given update types. | |||
|
|||
:param cls Type[BusinessRule]: The BusinessRule to decorate | |||
:param update_types Iterable[int]: The UpdateTypes to skip | |||
:param cls Type[BusinessRule]: The BusinessRule to decorate :param |
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.
Should there be a line break before the second :param
?
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.
Fix applied
8bb6763
to
7835b39
Compare
common/business_rules.py
Outdated
@@ -226,8 +229,10 @@ def skip_when_update_type(cls: Type[BusinessRule], update_types: Iterable[Update | |||
""" | |||
Skip business rule validation for given update types. | |||
|
|||
:param cls Type[BusinessRule]: The BusinessRule to decorate | |||
:param update_types Iterable[int]: The UpdateTypes to skip | |||
:param cls: The BusinessRule to decorate :param |
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.
Is that second :param
on this line a stray one?
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.
Sorry no I have already pushed a fix for it :)
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1170 +/- ##
==========================================
- Coverage 93.11% 93.11% -0.01%
==========================================
Files 580 580
Lines 43649 43646 -3
Branches 3139 3139
==========================================
- Hits 40645 40641 -4
- Misses 2393 2394 +1
Partials 611 611 ☔ View full report in Codecov by Sentry. |
Fix all files using pre-commit
Why
It looks like some files have not been checked using pre-commit hooks at the past. By manually running pre-commit against all errors found are resolved
What