Skip to content

Commit

Permalink
Update thirt.py
Browse files Browse the repository at this point in the history
kyu_6/a_rule_of_divisibility_by_13/thirt.py:1 at module level:
        D205: 1 blank line required between summary line and description (found 0)

        Multi-line docstrings consist of a summary line just like a one-line
        docstring, followed by a blank line, followed by a more elaborate
        description. The summary line may be used by automatic indexing tools;
        it is important that it fits on one line and is separated from the
        rest of the docstring by a blank line.

kyu_6/a_rule_of_divisibility_by_13/thirt.py:1 at module level:
        D400: First line should end with a period (not '3')

        The [first line of a] docstring is a phrase ending in a period.

kyu_6/a_rule_of_divisibility_by_13/thirt.py:11 in public function `thirt`:
        D205: 1 blank line required between summary line and description (found 0)

        Multi-line docstrings consist of a summary line just like a one-line
        docstring, followed by a blank line, followed by a more elaborate
        description. The summary line may be used by automatic indexing tools;
        it is important that it fits on one line and is separated from the
        rest of the docstring by a blank line.

kyu_6/a_rule_of_divisibility_by_13/thirt.py:11 in public function `thirt`:
        D400: First line should end with a period (not 's')

        The [first line of a] docstring is a phrase ending in a period.

kyu_6/a_rule_of_divisibility_by_13/thirt.py:11 in public function `thirt`:
        D401: First line should be in imperative mood; try rephrasing (found 'The')

        [Docstring] prescribes the function or method's effect as a command:
        ("Do this", "Return that"), not as a description; e.g. don't write
        "Returns the pathname ...".

kyu_6/rotate_the_letters_of_each_element/group_cities.py:10 in public function `group_cities`:
        D401: First line should be in imperative mood (perhaps 'Group', not 'Grouping')

        [Docstring] prescribes the function or method's effect as a command:
        ("Do this", "Return that"), not as a description; e.g. don't write
        "Returns the pathname ...".
  • Loading branch information
ikostan committed Dec 18, 2024
1 parent ae4fbac commit 535114f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kyu_6/a_rule_of_divisibility_by_13/thirt.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""
Solution for -> A Rule of Divisibility by 13
Solution for -> A Rule of Divisibility by 13.
Created by Egor Kostan.
GitHub: https://github.com/ikostan
"""
Expand All @@ -9,6 +10,8 @@

def thirt(n: int) -> int:
"""
Rule of Divisibility by 13.
The function which processes this sequence of operations
on an integer n (>=0). `thirt` will return the stationary number.
:param n: int
Expand Down

0 comments on commit 535114f

Please sign in to comment.