Skip to content

Commit

Permalink
chore: fix pylint errors
Browse files Browse the repository at this point in the history
Update line wrap length and disable pylint for the dep5 file content.

Signed-off-by: Nico Rikken <nico.rikken@fsfe.org>
  • Loading branch information
nicorikken committed Jul 21, 2023
1 parent 6881f0d commit 7ab2874
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions tests/test_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
"""
Expand Down Expand Up @@ -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(
"""
Expand Down

0 comments on commit 7ab2874

Please sign in to comment.