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
Jörg Thalheim
7d755beca6
enable more linting
2023-11-29 13:29:45 +00:00
Jörg Thalheim
0e6840a91d
clan-cli: drop unused mypy overrides for gi
2023-11-23 18:01:40 +01:00
Qubasa
dddbe74d6a
Added gtk demo app
2023-11-23 15:03:38 +01:00
Jörg Thalheim
50ecdebdd3
pytest: add missing with-core marker
2023-11-15 07:21:26 +01:00
Qubasa
4ff9990054
Fixed wrong examples
2023-11-08 21:40:17 +01:00
Jörg Thalheim
d08fe82864
switch from black to ruff for formatting
2023-11-03 13:38:13 +01:00
Qubasa
1fef2d1732
Fixed test_webui only failing in nix_sandbox
2023-10-29 19:35:29 +01:00
Qubasa
e389c7cfe7
Updated to main branch. Removed cluttering asyncio and httpx log messages
2023-10-27 23:36:45 +02:00
Qubasa
d69b8920d1
Fixing test_vms_api test
2023-10-27 19:26:03 +02:00
Qubasa
750b4b6b7e
Fixing test_vms_api test
2023-10-27 19:26:03 +02:00
Qubasa
3aed7b834f
Commit only for debugging Container
2023-10-27 19:26:03 +02:00
Qubasa
5bd2345bc1
Commit only for debugging Container
2023-10-27 19:26:03 +02:00
Qubasa
0be3dac289
nix fmt
2023-10-27 19:21:50 +02:00
Qubasa
6d0deefa6b
Added ipdb as breakpoint console. Improved logging.
2023-10-27 19:19:45 +02:00
Qubasa
0ab2b853f2
Improved logging messages. Added ClanError if flake create or machine create already exist
2023-10-27 19:18:45 +02:00
Qubasa
d96ea61243
Secrets tests passing. nix fmt doesn't complain
2023-10-27 19:18:45 +02:00
Qubasa
7bbadaa60f
Fixed cyclic dependencie AND swapped pytest-parallel for pytest-xdist to fix deadlock in tests
2023-10-27 19:18:45 +02:00
Jörg Thalheim
455952cfaa
tests: increase timeout to 60
2023-09-28 15:24:06 +02:00
Jörg Thalheim
164f95723d
pytest: add impure marker
2023-09-19 13:12:10 +02:00
Jörg Thalheim
b7212b9988
ruff: also enforce variable naming rules
2023-08-27 10:51:47 +02:00
Jörg Thalheim
9913a95cc2
ruff: enable upgrade rule checks
2023-08-27 10:46:53 +02:00
Jörg Thalheim
bac0942033
pytest: report slow tests and set a 30 timeout
2023-08-27 10:41:32 +02:00
Jörg Thalheim
9cc6a14d73
run pytest in parallel
2023-08-27 09:45:15 +02:00
Jörg Thalheim
9ae14a4f7d
integrate static assets into webui command
2023-08-26 12:24:57 +02:00
Jörg Thalheim
fb7c77690a
replace environment variable with nixpkgs directory
...
In this directory we generate all the files that we need to load nixpkgs.
This seems more robust than all those environment variables that may or not may be set.
2023-08-26 11:45:09 +02:00
DavHau
0a9b914ad5
clan-config: improve jsonschema arg parsing
...
- output json to stdout after success
- expect args in the style: `foo.bar = baz`
- handle different input types
- cast input types on best effort basis
- throw meaningful errors
2023-08-11 00:05:52 +02:00