mirror of
https://github.com/dbarzin/pandora-box.git
synced 2025-07-30 18:59:42 +02:00
code quality
This commit is contained in:
parent
7eca8b3a87
commit
d39d4b6d2f
2 changed files with 7 additions and 4 deletions
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
|
@ -26,4 +26,7 @@ jobs:
|
||||||
- name: code quality checkout
|
- name: code quality checkout
|
||||||
run: |
|
run: |
|
||||||
pip install pylint
|
pip install pylint
|
||||||
pylint ./pandora-box.py
|
ls
|
||||||
|
pwd
|
||||||
|
pylint ./pandora-box/pandora-box.py
|
||||||
|
|
||||||
|
|
|
@ -470,7 +470,7 @@ def wait_device():
|
||||||
# --------------------------------------
|
# --------------------------------------
|
||||||
|
|
||||||
def mount():
|
def mount():
|
||||||
global device, mount_point
|
global mount_point
|
||||||
# Mount device
|
# Mount device
|
||||||
mount_point = mount_device()
|
mount_point = mount_device()
|
||||||
log('Partition mounted at %s' % mount_point)
|
log('Partition mounted at %s' % mount_point)
|
||||||
|
@ -480,7 +480,7 @@ def mount():
|
||||||
display_image("WAIT")
|
display_image("WAIT")
|
||||||
return "WAIT"
|
return "WAIT"
|
||||||
try:
|
try:
|
||||||
statvfs=os.statvfs(mount_point)
|
os.statvfs(mount_point)
|
||||||
except Exception as e :
|
except Exception as e :
|
||||||
log("error=%s" % e)
|
log("error=%s" % e)
|
||||||
logging.info("An exception was thrown!", exc_info=True)
|
logging.info("An exception was thrown!", exc_info=True)
|
||||||
|
@ -577,7 +577,7 @@ def loop(state):
|
||||||
# --------------------------------------
|
# --------------------------------------
|
||||||
|
|
||||||
"""Main entry point"""
|
"""Main entry point"""
|
||||||
def main(stdscr):
|
def main():
|
||||||
try :
|
try :
|
||||||
state="START"
|
state="START"
|
||||||
while (state!="STOP"):
|
while (state!="STOP"):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue