Commit graph

7 commits

Author SHA1 Message Date
Felix Uhl
ae7891e21f disko2: Fix all mypy type checking errors
Belongs to d382a3cccf, but I authored that
on another machine.

Making sure vscode uses mypy from the environment is very important now,
because some of these errors get triggered in different ways depending
on the version.
2024-11-17 19:39:07 +01:00
Felix Uhl
d382a3cccf tests: Make mypy a lot stricter
The default `strict = true` is too permissive for my liking, especially
how it allows using `Any` in many places and doesn't warn about them at
all.
2024-11-15 16:31:53 +01:00
Felix Uhl
2bd9c4f8c7 dev,docs: Improve and document DX with Python 2024-11-10 18:48:35 +01:00
Felix Uhl
0cd949092d disko2: Add test for generate_config 2024-11-03 20:59:56 +01:00
Felix Uhl
389235b63f disko2: Create package
This requires a lot of restructuring. The .nix files have to be bundled
together with the python files, so they need to follow python's module
system structure.

I ran `nix-fast-build --no-link -j 2 --eval-workers 3 --flake .#checks`
and it succeeded, so I'm reasonably confident I changed everything as
required.
2024-10-30 23:54:41 +01:00
Felix Uhl
ed506048a4 dev: Add autoflake to remove unused imports automatically 2024-10-29 23:42:25 +01:00
Felix Uhl
8cf1486b17 dev: Add mypy type checker 2024-10-29 16:42:04 +01:00