mirror of
https://github.com/offa/android-foss.git
synced 2026-04-18 11:16:20 +05:30
style: fix trailing new lines + spaces (#598)
This commit is contained in:
parent
b7960e5940
commit
ede8e5ca81
4 changed files with 3 additions and 6 deletions
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
|
|
@ -39,4 +39,3 @@ jobs:
|
|||
uses: actions/checkout@main
|
||||
- name: Ensure sorted
|
||||
run: python3 ensure_sorted.py
|
||||
|
||||
|
|
|
|||
1
check.sh
1
check.sh
|
|
@ -10,7 +10,6 @@ FDROID_SETTINGS=$( \
|
|||
| sed "s/)].*/;/g" \
|
||||
)
|
||||
|
||||
|
||||
FAILED=0
|
||||
|
||||
while IFS=';' read -ra TOK; do
|
||||
|
|
|
|||
|
|
@ -76,4 +76,4 @@ function check_links() {
|
|||
fi
|
||||
}
|
||||
|
||||
check_links
|
||||
check_links
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue