mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:40:52 +01:00
[PR #729] [MERGED] mods: report swap conflicts in JSON and add check --strict (MODS-CONFLICT-REPORTING) #767
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#767
Loading…
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/ubiquitarianism/leonida/pull/729
Author: @promise-ssss
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @aslan2142
Base:
main← Head:feat/mods-conflict-reporting📝 Commits (1)
72e8616mods: report swap conflicts in JSON and add check --strict📊 Changes
2 files changed (+98 additions, -14 deletions)
View changed files
📝
tests/test_leonida_mods.py(+50 -0)📝
tools/leonida_mods.py(+48 -14)📄 Description
Claimed in the coordination issue as: MODS-CONFLICT-REPORTING
What and why
eport_json() omitted override/conflict metadata and check had no strict mode to fail on warnings or swap conflicts.
This extracts a shared swap_conflicts(mods) helper used by print_report(),
eport_json(), and check --strict:
Tested
python -I tests/test_leonida_mods.py -v: 12/12 passed (0.073 s)python -I scripts/check_no_game_data.py tools/leonida_mods.py tests/test_leonida_mods.py: passedpython -m compileall -q tools/leonida_mods.py tests/test_leonida_mods.py: cleanGPUs tested: n/a
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.