From 7ab28749505f724e00b359190f90872811dfaf0e Mon Sep 17 00:00:00 2001 From: Nico Rikken Date: Fri, 21 Jul 2023 19:44:03 +0200 Subject: [PATCH] chore: fix pylint errors Update line wrap length and disable pylint for the dep5 file content. Signed-off-by: Nico Rikken --- tests/test_report.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/tests/test_report.py b/tests/test_report.py index 7c5b911f0..bc3728298 100644 --- a/tests/test_report.py +++ b/tests/test_report.py @@ -269,10 +269,11 @@ def test_generate_file_report_to_dict_lint_source_information(fake_repository): def test_strict_dep5_in_file_report(fake_repository): - """All copyright information of a strictly formatted dep5 file should be taken - into account in the file report. Strictly formatted meaning that there is a - single Copyright entry with indentend values. + """All copyright information of a strictly formatted dep5 file should be + taken into account in the file report. Strictly formatted meaning that there + is a single Copyright entry with indentend values. """ + # pylint: disable=line-too-long (fake_repository / ".reuse/dep5").write_text( dedent( """ @@ -316,14 +317,15 @@ def test_strict_dep5_in_file_report(fake_repository): def test_non_strict_dep5_in_file_report(fake_repository): - """Copyright information of a non-strictly formatted dep5 file should be taken - into account in the file report. Non-strictly formatted meaning that there - are multiple Copyright entries. + """Copyright information of a non-strictly formatted dep5 file should be + taken into account in the file report. Non-strictly formatted meaning that + there are multiple Copyright entries. Note that in the non-strict mode only the first Copyright entry is taken into account and the rest is silently ignored. This is undesireable but reflects the current state of reuse-tool. """ + # pylint: disable=line-too-long (fake_repository / ".reuse/dep5").write_text( dedent( """