Skip to content

Commit

Permalink
🎨 Format Python code with psf/black
Browse files Browse the repository at this point in the history
  • Loading branch information
gcattan authored Dec 10, 2022
1 parent 32592e3 commit 7a6740d
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions git_quality_check/indicators/counters/process_logs.py
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
def process_logs(logs: list[str], functions: list[str:int]):
"""
Call a list of functions on the commit logs.
Each function is a scoring function that returns
either 1 or 0.
The method then return the percent of functions having returned 1.
Call a list of functions on the commit logs.
Each function is a scoring function that returns
either 1 or 0.
The method then return the percent of functions having returned 1.
>>>>>>> d427c6eba7617351a44a3bf759bdb38e9b3ce25d
Parameters
----------
logs: list[str]
The commit logs
functions: list[str:int]
A list of scoring functions, taking a commit log as a parameter
and returning either 1 or 0.
Note, it is expected that all scoring functions have the same `meaning`.
That is, they all return 1 (or 0) when the logs is validated (or unvalidated).
>>>>>>> d427c6eba7617351a44a3bf759bdb38e9b3ce25d
Parameters
----------
logs: list[str]
The commit logs
functions: list[str:int]
A list of scoring functions, taking a commit log as a parameter
and returning either 1 or 0.
Note, it is expected that all scoring functions have the same `meaning`.
That is, they all return 1 (or 0) when the logs is validated (or unvalidated).
Returns
-------
percent: float
The percent of functions having returned 1.
Returns
-------
percent: float
The percent of functions having returned 1.
"""
counter = 0
count = len(logs) * len(functions)
Expand Down

0 comments on commit 7a6740d

Please sign in to comment.