Skip to content
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

Format Python code with psf/black push #14

Merged
merged 1 commit into from
Jul 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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