mirror of
https://github.com/offa/android-foss.git
synced 2026-07-21 09:25:37 +02:00
style: fix trailing new lines + spaces (#598)
This commit is contained in:
@@ -39,4 +39,3 @@ jobs:
|
|||||||
uses: actions/checkout@main
|
uses: actions/checkout@main
|
||||||
- name: Ensure sorted
|
- name: Ensure sorted
|
||||||
run: python3 ensure_sorted.py
|
run: python3 ensure_sorted.py
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ FDROID_SETTINGS=$( \
|
|||||||
| sed "s/)].*/;/g" \
|
| sed "s/)].*/;/g" \
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
FAILED=0
|
FAILED=0
|
||||||
|
|
||||||
while IFS=';' read -ra TOK; do
|
while IFS=';' read -ra TOK; do
|
||||||
|
|||||||
+1
-1
@@ -76,4 +76,4 @@ function check_links() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
check_links
|
check_links
|
||||||
|
|||||||
+2
-3
@@ -35,7 +35,7 @@ class Category:
|
|||||||
for i in range(1, len(self.apps)):
|
for i in range(1, len(self.apps)):
|
||||||
if self.apps[i] < self.apps[i-1]:
|
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'
|
return f'App {bcolors.RED}{self.apps[i-1]}{bcolors.ENDC} is not in the correct order'
|
||||||
|
|
||||||
def how_to_sort(self):
|
def how_to_sort(self):
|
||||||
sorted_apps = sorted(self.apps)
|
sorted_apps = sorted(self.apps)
|
||||||
unsorted_apps = self.apps.copy()
|
unsorted_apps = self.apps.copy()
|
||||||
@@ -49,7 +49,7 @@ class Category:
|
|||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return str(self.apps)
|
return str(self.apps)
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return self.__str__()
|
return self.__str__()
|
||||||
|
|
||||||
@@ -98,7 +98,6 @@ def main():
|
|||||||
|
|
||||||
if not all_sorted:
|
if not all_sorted:
|
||||||
exit(2)
|
exit(2)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
|||||||
Reference in New Issue
Block a user