From dd6b36b70a15cc6918027c045c32b2cf88a60978 Mon Sep 17 00:00:00 2001 From: avats-dev Date: Tue, 1 Sep 2020 10:07:09 +0530 Subject: [PATCH] reformat with black --- link_checker/tests/test_utils.py | 2 +- link_checker/utils.py | 19 +++++++++---------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/link_checker/tests/test_utils.py b/link_checker/tests/test_utils.py index 7c45459..912da31 100644 --- a/link_checker/tests/test_utils.py +++ b/link_checker/tests/test_utils.py @@ -99,7 +99,7 @@ def id_generator(data): @pytest.mark.parametrize( "filename, result, deed_result, rdf_result", license_url_data, - ids=id_generator(license_url_data) + ids=id_generator(license_url_data), ) def test_create_base_link(filename, result, deed_result, rdf_result): args = link_checker.parse_argument([]) diff --git a/link_checker/utils.py b/link_checker/utils.py index 069cc20..36e8a81 100644 --- a/link_checker/utils.py +++ b/link_checker/utils.py @@ -448,14 +448,14 @@ def create_base_link(args, filename, for_deeds=False, for_rdfs=False): def create_absolute_link(base_url, link_analysis): """Creates absolute links from relative links - Args: - base_url (string): URL on which the license page will be displayed - link_analysis (class 'urllib.parse.SplitResult'): Link splitted by - urlsplit, that is to be converted - - Returns: - str: absolute link - """ + Args: + base_url (string): URL on which the license page will be displayed + link_analysis (class 'urllib.parse.SplitResult'): Link splitted by + urlsplit, that is to be converted + + Returns: + str: absolute link + """ href = link_analysis.geturl() # Check for relative link if ( @@ -607,8 +607,7 @@ def map_links_file(link, file_url): def output_write(args, *args_, **kwargs): - """Prints to output file is --output-error flag is set - """ + """Prints to output file is --output-error flag is set""" if args.output_errors: kwargs["file"] = args.output_errors print(*args_, **kwargs)