Skip to content

Commit

Permalink
🎨 Format Python code with psf/black (#14)
Browse files Browse the repository at this point in the history
Co-authored-by: gcattan <gcattan@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and gcattan authored Jul 10, 2022
1 parent b976d6e commit d39ff4f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
6 changes: 2 additions & 4 deletions git_quality_check/utils/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
MAINBRANCHES = "INPUT_MAINBRANCHES"



def parse_inputs():
"""
" Gets inputs from environment variables:
Expand Down Expand Up @@ -34,17 +33,16 @@ def get_date():
return datetime.today()



def sample(li: list[str], n: int):
"""
" Computes a sample of size 'n' from a list:
" - if the size of the list is equal or lower than n, returns the list
" - if the size of the list is greater than n, returns a sample of n.
" (some elements might be repetead)
"
"
" li: the list
" n: expected number of elements in the sample
"
"
" Returns the tuple (sample, )
"""
count = len(li)
Expand Down
15 changes: 13 additions & 2 deletions tests/utils/test_git.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,28 @@
import pytest
from git_quality_check.utils.git import is_old, git_all_branches, are_coupled, git_get_branch_date, remove_first_line
from git_quality_check.utils.git import (
is_old,
git_all_branches,
are_coupled,
git_get_branch_date,
remove_first_line,
)


def test_branch_is_old():
assert True == False


def test_branch_are_coupled():
assert True == False


def test_git_all_branches():
assert True == False


def test_git_get_branch_date():
assert True == False


def test_remove_first_line():
assert True == False
assert True == False

0 comments on commit d39ff4f

Please sign in to comment.