mirror of
https://github.com/IAmTomShaw/f1-race-replay.git
synced 2026-05-09 08:25:56 +02:00
[PR #191] [CLOSED] UV, Logging & Central Config #209
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/f1-race-replay#209
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/IAmTomShaw/f1-race-replay/pull/191
Author: @Jake-Pullen
Created: 1/24/2026
Status: ❌ Closed
Base:
main← Head:uv_and_logging📝 Commits (5)
03d4776chore: ⚙️ Transition to UV for better environment and package handlingc585bb3chore: 🧹 Remove requirements.txt no longer requiredc6ba939debug: 🧪 Added Logging to enable easier debugginga499b79feat: ✨ Central Config Filesf1145f7docs: 📜 tiny tidy tweak📊 Changes
15 files changed (+1677 additions, -114 deletions)
View changed files
📝
.gitignore(+1 -0)➕
.python-version(+1 -0)📝
README.md(+18 -36)📝
main.py(+24 -7)➕
pyproject.toml(+18 -0)➖
requirements.txt(+0 -9)➕
src/config.py(+24 -0)➕
src/config_files/gui_config.yaml(+22 -0)➕
src/config_files/logging_config.yaml(+34 -0)📝
src/f1_data.py(+26 -23)📝
src/interfaces/qualifying.py(+17 -13)📝
src/interfaces/race_replay.py(+13 -19)📝
src/lib/time.py(+7 -5)📝
src/ui_components.py(+4 -2)➕
uv.lock(+1468 -0)📄 Description
This Pull request adds in 1 major change (UV) and 2 minor changes (Logging and central config)
Using UV for environment, package and dependency handling is far superior than pip & requirements.txt. It is built with rust so it is incredibly quick but it also handles virtual environments for you (no more .venv\bin\activate or source venv/bin/activate) it also ensures that package version is stable and consistent across all developers, reducing that "works on my machine" to nothing.
This is a large impact change as it requires installing UV (https://docs.astral.sh/uv/) and running the files with
uv run main.pyrather thanpython main.pyhowever the plus sides I believe far outweighs the headache of changing over.Logging - i have added as a quality of life change for the contributors and maintainers as it means we can store log files for bug / crash investigations. (This is currently set to keep 5 files and rotate at 10mb each but can be changed in logging config)
Central config - We now have an easy place to store user controlled settings like maximizing the arcade window when it starts or the base size of the arcade window.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.