Skip to content

Commit 3c363be

Browse files
authored
fixed linting errors
1 parent 9d16fb2 commit 3c363be

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

python-ecosys/uminio/example_uminio.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
WIFI_PASSWORD = "YOUR_WIFI_PASSWORD"
2121

2222
def connect_wifi():
23-
sta_if = network.WLAN(network.STA_IF) #
23+
sta_if = network.WLAN(network.STA_IF)
2424
if not sta_if.isconnected():
2525
print("Connecting to WiFi...")
2626
sta_if.active(True)
@@ -35,13 +35,13 @@ def main():
3535
connect_wifi()
3636

3737
# 2. Synchronize time (critical for MinIO authentication)
38-
mc.sync_time() #
38+
mc.sync_time()
3939

4040
# 3. Create a dummy file to upload (or use an existing file)
4141
local_file_to_upload = "data.txt"
4242
bucket_name = "my_bucket" # Ensure this bucket exists in MinIO
4343
s3_object_name = "my_device_data/data.txt" # Desired path and name in S3
44-
content_type = "text/plain" #
44+
content_type = "text/plain"
4545

4646
try:
4747
with open(local_file_to_upload, "w") as f:
@@ -54,7 +54,7 @@ def main():
5454

5555
# 4. Upload the file
5656
print(f"Attempting to upload '{local_file_to_upload}' to MinIO bucket '{bucket_name}' as '{s3_object_name}'...")
57-
if mc.upload_file(local_file_to_upload, bucket_name, s3_object_name, content_type): #
57+
if mc.upload_file(local_file_to_upload, bucket_name, s3_object_name, content_type):
5858
print("Upload successful!")
5959
else:
6060
print("Upload failed.")

python-ecosys/uminio/manifest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
metadata(
2-
version="0.0.1",
2+
version="0.0.1",
33
description="MicroPython client for MinIO object storage"
44
)
55

0 commit comments

Comments
 (0)