Fix spurious line endings, don't allow ruff-format to fail anymore
This commit is contained in:
parent
928d5ef300
commit
32f2a7ce70
2 changed files with 7 additions and 8 deletions
|
|
@ -69,7 +69,6 @@ ruff-lint:
|
||||||
ruff-format:
|
ruff-format:
|
||||||
stage: analysis
|
stage: analysis
|
||||||
extends: .python
|
extends: .python
|
||||||
allow_failure: true
|
|
||||||
script:
|
script:
|
||||||
- ruff format --check
|
- ruff format --check
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -826,7 +826,7 @@ class SmartScanThing(Thing):
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(
|
logger.error(
|
||||||
f"The scan stopped because of an error: {e}",
|
f"The scan stopped because of an error: {e}",
|
||||||
"We will attempt to stitch and archive the images acquired " "so far.",
|
"We will attempt to stitch and archive the images acquired so far.",
|
||||||
exc_info=e,
|
exc_info=e,
|
||||||
)
|
)
|
||||||
raise e
|
raise e
|
||||||
|
|
@ -1193,7 +1193,7 @@ class SmartScanThing(Thing):
|
||||||
)
|
)
|
||||||
# logger.info("Creating zip archive of images (may take some time)...")
|
# logger.info("Creating zip archive of images (may take some time)...")
|
||||||
|
|
||||||
zip_fname = f'{os.path.join(scan_folder, "images")}.zip'
|
zip_fname = f"{os.path.join(scan_folder, 'images')}.zip"
|
||||||
|
|
||||||
# Create an empty zip file - we don't want to autofill it with files,
|
# Create an empty zip file - we don't want to autofill it with files,
|
||||||
# as some of them should only be added at the end (as we can't overwrite)
|
# as some of them should only be added at the end (as we can't overwrite)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue