[PR #140] [CLOSED] Fix: Make main.py a little bit more readable #170

Closed
opened 2026-05-07 00:19:01 +02:00 by BreizhHardware · 0 comments

📋 Pull Request Information

Original PR: https://github.com/IAmTomShaw/f1-race-replay/pull/140
Author: @111110100
Created: 12/28/2025
Status: Closed

Base: mainHead: indentmain01


📄 Description

Made adjustments to the main block to make it more readable:

  1. Easier to scan and extend
  2. Passed sys.argv to args for single processing
  3. Early exists for GUI/CLI and list modes
  4. Removed nested else statements
  5. Bounds checking for year, round and read-file options

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/IAmTomShaw/f1-race-replay/pull/140 **Author:** [@111110100](https://github.com/111110100) **Created:** 12/28/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `indentmain01` --- ### 📄 Description Made adjustments to the main block to make it more readable: 1. Easier to scan and extend 2. Passed `sys.argv` to `args` for single processing 3. Early exists for GUI/CLI and list modes 4. Removed nested `else` statements 5. Bounds checking for year, round and read-file options --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
BreizhHardware 2026-05-07 00:19:01 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/f1-race-replay#170
No description provided.