From ede8e5ca8196682b7458529ec2d7917a25312385 Mon Sep 17 00:00:00 2001 From: Khiet Tam Nguyen <86177399+nktnet1@users.noreply.github.com> Date: Sun, 18 Jan 2026 23:45:53 +1100 Subject: [PATCH] style: fix trailing new lines + spaces (#598) --- .github/workflows/ci.yml | 1 - check.sh | 1 - check_manually.sh | 2 +- ensure_sorted.py | 5 ++--- 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5cb3b7d..0035be8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,4 +39,3 @@ jobs: uses: actions/checkout@main - name: Ensure sorted run: python3 ensure_sorted.py - diff --git a/check.sh b/check.sh index 842b06b..ffa9d1a 100755 --- a/check.sh +++ b/check.sh @@ -10,7 +10,6 @@ FDROID_SETTINGS=$( \ | sed "s/)].*/;/g" \ ) - FAILED=0 while IFS=';' read -ra TOK; do diff --git a/check_manually.sh b/check_manually.sh index b501ce1..15e90fe 100755 --- a/check_manually.sh +++ b/check_manually.sh @@ -76,4 +76,4 @@ function check_links() { fi } -check_links \ No newline at end of file +check_links diff --git a/ensure_sorted.py b/ensure_sorted.py index 0137d25..4109085 100755 --- a/ensure_sorted.py +++ b/ensure_sorted.py @@ -35,7 +35,7 @@ class Category: for i in range(1, len(self.apps)): if self.apps[i] < self.apps[i-1]: return f'App {bcolors.RED}{self.apps[i-1]}{bcolors.ENDC} is not in the correct order' - + def how_to_sort(self): sorted_apps = sorted(self.apps) unsorted_apps = self.apps.copy() @@ -49,7 +49,7 @@ class Category: def __str__(self): return str(self.apps) - + def __repr__(self): return self.__str__() @@ -98,7 +98,6 @@ def main(): if not all_sorted: exit(2) - if __name__ == "__main__": main()