-
Notifications
You must be signed in to change notification settings - Fork 6
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
Merge pull request #561 from iKostanOrg/master #562
Conversation
Merge pull request #560 from iKostanOrg/kyu6
Reviewer's Guide by SourceryThis pull request refactors test cases in Class diagram for DefaultList implementationclassDiagram
class DefaultList {
-list __lst
-str default_value
+__init__(lst: list, default_value: str)
+__getitem__(i: int)
+extend(items: list)
+append(item)
+pop(item)
+remove(item)
+insert(index: int, item)
}
note for DefaultList "Implements a list with default value for out of range indices"
Class diagram for Potion implementationclassDiagram
class Potion {
-Tuple _color
-int _volume
+__init__(color: Tuple, volume: int)
+mix(other: Potion) Potion
+volume() int
+volume(value: int)
+color() tuple
+color(value: Tuple)
}
note for Potion "Represents a potion with color and volume properties"
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 @ikostan - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 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.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #562 +/- ##
=======================================
Coverage 90.34% 90.34%
=======================================
Files 172 172
Lines 2537 2537
=======================================
Hits 2292 2292
Misses 245 245 ☔ View full report in Codecov by Sentry. |
Code Climate has analyzed commit 8f7dce0 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 94.1% (50% is the threshold). This pull request will bring the total coverage in the repository to 90.3% (0.0% change). View more on Code Climate. |
kyu_6/format_string_of_names/test_namelist.py:1 at module level: D301: Use r""" if any backslashes in a docstring Use r"""raw triple double quotes""" if you use any backslashes (\) in your docstrings. Exceptions are backslashes for line-continuation and unicode escape sequences \N... and \u... These are considered intended unescaped content in docstrings. kyu_6/format_string_of_names/solution.py:1 at module level: D301: Use r""" if any backslashes in a docstring Use r"""raw triple double quotes""" if you use any backslashes (\) in your docstrings. Exceptions are backslashes for line-continuation and unicode escape sequences \N... and \u... These are considered intended unescaped content in docstrings.
kyu_6/who_likes_it/test_likes_function.py:33 in public class `LikesTestCase`: D400: First line should end with a period (not 'n') The [first line of a] docstring is a phrase ending in a period.
kyu_6/format_string_of_names/test_namelist.py:1 at module level: D301: Use r""" if any backslashes in a docstring Use r"""raw triple double quotes""" if you use any backslashes (\) in your docstrings. Exceptions are backslashes for line-continuation and unicode escape sequences \N... and \u... These are considered intended unescaped content in docstrings.
@sourcery-ai review |
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 @ikostan - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟡 General issues: 2 issues found
- 🟢 Security: all looks good
- 🟡 Testing: 3 issues found
- 🟢 Complexity: all looks good
- 🟢 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.
No name 'to_table' in module 'kyu_6.array_to_html_table' kyu_6/array_to_html_table/ test_list_to_html_table.py 10 import allure 11 from utils.log_func import print_log 12 from kyu_6.array_to_html_table.to_table import to_table 13 Time to fix: 5 minutes no-name-in-module (E0611) Why is this an issue? No name %r in module %r Used when a name cannot be found in a module.
suggestion (testing): Consider adding a test case with duplicate categories in the stock list. This would ensure the function correctly handles scenarios where multiple books belong to the same category.
Merge pull request #560 from iKostanOrg/kyu6
Summary by Sourcery
Tests: