Skip to content

Commit

Permalink
Update compute_ranks.py
Browse files Browse the repository at this point in the history
kyu_5/sports_league_table_ranking/compute_ranks.py:132 in public function `calc_gd`:
        D401: First line should be in imperative mood (perhaps 'Calculate', not 'Calculates')

        [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_5/sports_league_table_ranking/compute_ranks.py:144 in public function `calc_rank`:
        D401: First line should be in imperative mood (perhaps 'Calculate', not 'Calculates')

        [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 13, 2024
1 parent 2718226 commit 2e3e4d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kyu_5/sports_league_table_ranking/compute_ranks.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def calc_for_against(teams, team, team_1, team_2) -> None:

def calc_gd(teams) -> None:
"""
Calculates "GD".
Calculate "GD".
:param teams:
:return:
Expand All @@ -142,7 +142,7 @@ def calc_gd(teams) -> None:

def calc_rank(teams: dict) -> None:
"""
Calculates Rank.
Calculate Rank.
First you sort the teams by their points. If two or more
teams reached the same number of points, the second criteria
Expand Down

0 comments on commit 2e3e4d4

Please sign in to comment.