Skip to content

Commit 98c7e24

Browse files
committed
Fix Lint
1 parent 7130e57 commit 98c7e24

File tree

373 files changed

+8
-377
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

373 files changed

+8
-377
lines changed

src/gardenlinux/features/difference_formatter.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def __init__(
9696

9797
flavor = flavor[:-5]
9898
self._all.add(flavor)
99-
if content == "\n":
99+
if content == "":
100100
self._successful.append(flavor)
101101
elif content == "whitelist\n":
102102
self._successful.append(flavor)
@@ -249,8 +249,7 @@ def __str__(self) -> str:
249249
250250
| Affected Files | Flavors | Features Causing the Problem |
251251
|----------------|---------|------------------------------|
252-
{rows}
253-
"""
252+
{rows}"""
254253

255254
successrate = round(
256255
100 * (len(self._successful) / len(self._expected_falvors)), 1
@@ -279,7 +278,7 @@ def __str__(self) -> str:
279278
if self._nightly_stats.is_file():
280279
with open(self._nightly_stats, "r") as f:
281280
nightly_a, nightly_b = (
282-
Nightly(*n.split(",")) for n in f.read().split(";")
281+
Nightly(*n.split(",")) for n in f.read().rstrip().split(";")
283282
)
284283
if nightly_a.run_number != "":
285284
explanation += f"\n\nComparison of nightly **[#{nightly_a.run_number}](https://github.com/gardenlinux/gardenlinux/actions/runs/{nightly_a.id})** \
@@ -357,7 +356,7 @@ def __str__(self) -> str:
357356
rows += row
358357

359358
if len(self._successful) < len(self._expected_falvors):
360-
rows += "\n*To add affected files to the whitelist, edit the `whitelist` variable in `.github/workflows/generate_diff.sh`*"
359+
rows += "\n*To add affected files to the whitelist, edit the `whitelist` variable in `.github/workflows/generate_diff.sh`*\n"
361360

362361
return result.format(
363362
emoji=emoji,

test-data/diff_files/additional_files.md

Lines changed: 0 additions & 1 deletion
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-

0 commit comments

Comments
 (0)