lib/src
Austreelis 0f5182ff0d Module-level assertions (#8)
I had a usecase for assertions in the module system for my [trivial builders PR in tidepool](auxolotl/labs#24), so I added a pretty basic way of defining them.

It's somewhat quick and dirty I feel like, and given lib has hit 1.0 I precautiously added a warning "module assertions are experimental" if a module defines them, which is traced just before checking them. Assertions are not checked if `__module__.check = false`.

I also took the liberty to fixup little things in tests and the module lib (the 3 commits with `fix:`).

Each commit is rather tiny, but I split them up for review. re-formatting is in the last one.

Co-authored-by: austreelis <git@swhaele.net>
Reviewed-on: #8
Reviewed-by: Jake Hamilton <jake.hamilton@hey.com>
Co-authored-by: Austreelis <austreelis@noreply.git.auxolotl.org>
Co-committed-by: Austreelis <austreelis@noreply.git.auxolotl.org>
2025-10-18 22:21:49 +00:00
..
attrs docs: migrate lib.attrs to doc-comments 2025-09-19 07:52:33 +04:00
bools docs: migrate lib.bools to doc-comments 2025-09-19 07:52:33 +04:00
dag docs: migrate lib.dag to doc-comments 2025-09-19 07:52:33 +04:00
errors docs: migrate lib.errors to doc-comments 2025-09-19 07:52:33 +04:00
fp docs: migrate lib.fp to doc-comments 2025-09-19 07:52:33 +04:00
generators docs: migrate lib.generators to doc-comments 2025-09-19 07:52:33 +04:00
importers docs: migrate lib.importers to doc-comments 2025-09-19 07:52:33 +04:00
licenses chore: define scopes by dirname, not manually 2025-09-10 05:50:02 +04:00
lists Module-level assertions (#8) 2025-10-18 22:21:49 +00:00
math docs: migrate lib.math to doc-comments 2025-09-19 07:52:33 +04:00
modules Module-level assertions (#8) 2025-10-18 22:21:49 +00:00
numbers docs: migrate lib.numbers to doc-comments 2025-09-19 07:52:33 +04:00
options docs: migrate lib.options to doc-comments 2025-09-19 07:52:33 +04:00
packages docs: migrate lib.packages to doc-comments 2025-09-19 07:52:33 +04:00
paths docs: migrate lib.paths to doc-comments 2025-09-19 07:52:33 +04:00
points docs: migrate lib.points to doc-comments 2025-09-19 07:52:33 +04:00
strings docs: migrate lib.strings to doc-comments 2025-09-19 07:52:33 +04:00
types docs: migrate lib.types to doc-comments 2025-09-19 07:52:33 +04:00
versions docs: migrate lib.versions to doc-comments 2025-09-10 05:53:35 +04:00
default.nix docs: migrate lib.versions to doc-comments 2025-09-10 05:53:35 +04:00
default.test.nix chore: extract from labs 2025-03-30 04:09:27 -07:00