mirror of
https://github.com/dbarzin/pandora-box.git
synced 2025-08-01 03:45:22 +02:00
code quality
This commit is contained in:
parent
40492fac00
commit
73512e9562
2 changed files with 3 additions and 5 deletions
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
@ -15,15 +15,13 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
|
||||||
path: main
|
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@master
|
uses: actions/setup-python@master
|
||||||
with:
|
with:
|
||||||
python-version: 3.10
|
python-version: '3.10'
|
||||||
|
|
||||||
- name: code quality checkout
|
- name: code quality checkout
|
||||||
run: |
|
run: |
|
||||||
pip install pylint
|
pip install pylint
|
||||||
pylint ./main/pandora-box.py
|
pylint ./pandora-box.py
|
||||||
|
|
|
@ -311,7 +311,7 @@ def mount_device():
|
||||||
if partition.device == device.device_node:
|
if partition.device == device.device_node:
|
||||||
found = True
|
found = True
|
||||||
loop += 1
|
loop += 1
|
||||||
if loop < 10:
|
if found:
|
||||||
return partition.mountpoint
|
return partition.mountpoint
|
||||||
else:
|
else:
|
||||||
log('No partition mounted')
|
log('No partition mounted')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue