Apply suggestions from code review of branch Increased-linting

Co-authored-by: Beth Probert <beth_probert@outlook.com>
This commit is contained in:
Julian Stirling 2025-09-19 10:16:47 +00:00
parent b4e28e232e
commit b9ca8b3094
5 changed files with 5 additions and 4 deletions

View file

@ -34,6 +34,7 @@ def configure_logging(log_folder: str) -> None:
root_logger = logging.getLogger()
root_logger.setLevel(logging.INFO)
# Explicitly make OFM_LOG_FILE a global so it can be updated based on log settings
# This requires silencing PLW0603 which disallows globals.
global OFM_LOG_FILE # noqa: PLW0603
OFM_LOG_FILE = os.path.join(log_folder, "openflexure_microscope.log")