mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 15:30:28 +03:00
pylint: Reenable R1722 consider-using-sys-exit
* R1722: Consider using 'sys.exit' instead (consider-using-sys-exit)
This commit is contained in:
parent
1fbfae355a
commit
a4c1ca48ad
4 changed files with 10 additions and 9 deletions
|
|
@ -6,6 +6,7 @@ import os
|
|||
import re
|
||||
import requests
|
||||
import subprocess
|
||||
import sys
|
||||
from colorama import Fore, Style
|
||||
from distutils.version import LooseVersion
|
||||
|
||||
|
|
@ -92,7 +93,7 @@ with open('gradlew-fdroid', 'w') as fp:
|
|||
if os.getenv('CI_PROJECT_NAMESPACE') != 'fdroid':
|
||||
p = subprocess.run(['git', '--no-pager', 'diff'])
|
||||
print(p.stdout)
|
||||
exit(errors)
|
||||
sys.exit(errors)
|
||||
|
||||
# This only runs after commits are pushed to fdroid/fdroidserver
|
||||
git_repo = git.repo.Repo('.')
|
||||
|
|
@ -103,7 +104,7 @@ if git_repo.is_dirty() and ('gradlew-fdroid' in modified or 'makebuildserver' in
|
|||
print(Fore.RED
|
||||
+ 'ERROR: GitLab Token not found in PERSONAL_ACCESS_TOKEN!'
|
||||
+ Style.RESET_ALL)
|
||||
exit(1)
|
||||
sys.exit(1)
|
||||
|
||||
branch = git_repo.create_head(os.path.basename(__file__), force=True)
|
||||
branch.checkout()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue