mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-16 22:01:22 +01:00
refactor(nix): a platform-neutral core in the VM library
Checks, Rect and the pixel helpers depend on no compositor. They move to komorebi_vm.core, which may not import komorebi_vm.kde, so that the package can go to the Windows port unchanged. komorebi_vm re-exports them and no suite changes. This is the first step of the cross-platform e2e plan.
This commit is contained in:
1 parent
9b90c508ee
commit
a37a9faf3d
11 files changed
+54
-40
No files matched your search
@@ -139,6 +139,10 @@ check also runs `ruff` and `ty` over it. The driver type checks every
|
||||
`test.py` with `ty` and `ruff` too, so a typo in a suite fails the build, not
|
||||
the run.
|
||||
|
||||
- The package `komorebi_vm.core` is what does not depend on the platform: `Checks`,
|
||||
`Rect` and the pixel helpers. It imports nothing of KDE, so that it can move to
|
||||
the Windows port unchanged. `komorebi_vm` re-exports them, so that a suite
|
||||
imports them from the same place as before.
|
||||
- `Checks` counts checks and fails once, at the end, so that one failure does
|
||||
not hide the ones after it. `finish()` prints `passed: N failed: M`, and its
|
||||
error names the checks that failed, which `nix build` shows in the last lines
|
||||
|
||||
Reference in new issue
Block a user