Qubasa
3f07f6ac79
service_runner: add grouping feature
2025-10-14 17:32:21 +02:00
DavHau
c936830bc6
generate_test_vars: add test
2025-09-16 19:16:53 +07:00
DavHau
ea32fdbd93
generate_test_vars: move into clan_cli
...
Reduces overhead by not having to manage a separate package for this small tool
2025-09-16 16:37:41 +07:00
Qubasa
a90cb56886
clan-cli: Move flash.py to clan_lib/flash
2025-07-16 15:29:18 +07:00
Johannes Kirschbauer
3e82e63443
clan_cli: rename references
2025-07-13 15:53:10 +02:00
Qubasa
f854c39292
clan-cli: Fix regression in ruff linter, where linter rules got overriden by local pyproject.toml
...
clan-app: Fix ruff regression where linter rules got overriden by local pyproject.toml
2025-07-08 17:23:32 +07:00
Qubasa
0d1e1d9796
treefmt/ruff: Set python lint version to 3.13. Fix all new lints coming up.
2025-07-04 17:11:31 +02:00
Johannes Kirschbauer
e6b163cb7a
pytest: improve logging a bit
2025-07-02 12:35:02 +02:00
a-kenji
dd3662b81e
pkgs/*: Remove pytest coverage testing from every single test run
...
There was no noticeable positive impact from having coverage reports on
every single test run.
While adding a separate command to check coverage might be added in the
future, the overhead of collecting the coverage for every test run made
seems not worth it currently.
2025-06-16 15:46:36 +00:00
Jörg Thalheim
cedc5113ea
add sudo_askpass_proxy
2025-05-28 16:21:30 +02:00
lassulus
03990ef7f0
clan-cli: clan_cli.templates -> clan_lib.templates
2025-05-20 16:08:02 +02:00
Jörg Thalheim
6cb6dec7d1
mypy: ignore clan_lib.nixpkgs
2025-05-20 13:36:18 +02:00
lassulus
ed89352ea1
clan-cli: clan_cli.dirs -> clan_lib.dirs
2025-05-20 12:08:30 +02:00
lassulus
cb74273da4
clan-cli: move clan_cli.nix to clan_lib.nix
2025-05-19 18:40:36 +02:00
Johannes Kirschbauer
deb6b57a23
refactor(clan/lib): move tests for persist.util into clan_lib
2025-05-14 13:35:27 +02:00
Qubasa
b90812ecce
clan-cli: add test_create in clan_lib test folder
2025-05-05 22:16:02 +02:00
Johannes Kirschbauer
35c280ffa7
Refactor(clan_cli): init clan_lib folder
2025-04-26 19:50:11 +02:00
Jörg Thalheim
435627d854
rename CLAN_STATIC_PROGRAMS -> CLAN_PROVIDED_PACKAGES
2025-04-16 18:27:01 +00:00
Johannes Kirschbauer
61d1cf32ab
chore(clan/pytest): discover all test files in the tree
2025-04-09 18:54:57 +02:00
Louis Opter
daeeb2ee43
clan-cli: add DavHau's explanation about the with_core pytest marker
...
See: https://git.clan.lol/clan/clan-core/pulls/2994#issuecomment-22542
2025-03-19 10:53:38 +00:00
Jörg Thalheim
d9c3cc8c68
cli: increase timeout for pytest
2025-03-18 14:04:43 +01:00
DavHau
db2e2e974c
vars+facts: use bwrap only if supported
2025-03-09 13:52:15 +07:00
Qubasa
c6d5eb5037
clan-app: Fix default.nix
2025-01-11 10:52:22 +07:00
Jörg Thalheim
5a5980f3be
revert pytest log format
...
This is makes error output of command extremly unreadable.
If someone wants a different value they can specify it on the
commandline.
2024-12-04 15:22:43 +01:00
Jörg Thalheim
67810c7a73
old json schema code
2024-10-09 13:30:50 +02:00
Jörg Thalheim
de4603a490
pytest: error on warning
2024-10-08 17:51:55 +00:00
clan-bot
2f38955066
Merge pull request 'fix resource leaks' ( #2191 ) from fix-warning into main
2024-10-01 18:03:58 +00:00
Jörg Thalheim
13aed0792e
fix file descriptor leak in cmd.run()
...
we were leaking pipes.
2024-10-01 19:27:47 +02:00
Qubasa
945c491d05
clan flash: Remove root requirement for flash, add a flash-template
2024-09-24 13:42:21 +02:00
DavHau
6e16e54968
vars: make simplify vars store abstraction
2024-09-02 18:44:00 +02:00
Jörg Thalheim
ddaf44a91b
move all ruff settings in one place
2024-09-02 14:07:06 +02:00
Jörg Thalheim
e150b37fb8
enable ASYNC, DTZ, YTT and EM lints
2024-09-02 14:07:06 +02:00
Jörg Thalheim
59c8b4f209
replace breakpoint() check with python lint
2024-09-02 13:36:07 +02:00
Jörg Thalheim
22d6e5e153
enable comprehensions linting rules
2024-09-02 13:35:52 +02:00
Jörg Thalheim
109d1faf9e
enable bug-bear linting rules
2024-09-02 13:26:07 +02:00
Jörg Thalheim
b313f2d066
make all same-module imports relative, the rest absolute
...
This makes sorting more consitent.
2024-09-02 13:00:19 +02:00
Jörg Thalheim
f04ed457db
cli: default template url should come from the package itself rather than our gitea
...
This allow easier testing and also forks.
2024-07-22 08:22:58 +02:00
Qubasa
a3715280bc
clan-cli: Fix missing allowed-programs.json in package
2024-07-14 13:07:24 +02:00
a-kenji
f3ee2649d2
pkgs: add metadata
...
Closes #1151
2024-04-17 13:32:50 +02:00
Qubasa
883c46bcaa
clan-cli: Readd mypy ignore clan_cli because of treefmt complaining
2024-03-10 16:06:03 +07:00
Qubasa
38699a8311
clan-cli: Add py.typed to make mypy work when used as library in clan-vm-manager
2024-03-10 15:18:18 +07:00
lassulus
cfdba84d9d
fix pyproject syntax, ignore E731
2024-03-03 06:20:08 +01:00
DavHau
148e8b0ac0
devShells: one global python devshell + activation via command
...
- this adds devShells.{system}.python
- a 'select-shell' command to switch between devshells
2024-03-01 18:16:38 +07:00
Qubasa
001a48da52
Removed python deal.
2023-12-30 23:10:43 +01:00
Qubasa
30d80a3b28
nix fmt
2023-12-19 18:02:06 +01:00
Jörg Thalheim
02f2b3700e
re-add 'U' ruff type category
...
This should have been not removed
2023-12-06 17:11:17 +01:00
Qubasa
1250079136
clan-vm-manager: Preserved selection on view change
2023-12-04 14:29:05 +01:00
Jörg Thalheim
35812463d3
clan-cli: also package mimetypes
2023-11-30 14:31:37 +01:00
Jörg Thalheim
59d1829f4d
disallow variable shadowing
2023-11-30 14:31:37 +01:00
Jörg Thalheim
01dbcec6a1
make type checking more strict
2023-11-30 14:31:37 +01:00