Mike Degatano
0636e49fe2
Enable mypy part 1 (addons and api) ( #5759 )
...
* Fix mypy issues in addons
* Fix mypy issues in api
* fix docstring
* Brackets instead of get with default
2025-03-25 15:06:35 -04:00
Stefan Agner
42e78408a7
Fix add-on store reset ( #5669 )
...
Make sure that add-on store resets do not delete the root folder. This
is important so that successive reset attempts do not fail (the
directory passed to `remove_folder` must exist, otherwise find fails
with an non-zero exit code).
While at it, handle find errors properly and report errors as critical.
2025-02-25 17:11:34 +01:00
Stefan Agner
f6faa18409
Bump pre-commit ruff to 0.5.7 and reformat ( #5242 )
...
It seems that the codebase is not formatted with the latest ruff
version. This PR reformats the codebase with ruff 0.5.7.
2024-08-13 20:53:56 +02:00
dependabot[bot]
d4fd8f3f0d
Bump black from 21.12b0 to 22.1.0 ( #3425 )
...
* Bump black from 21.12b0 to 22.1.0
Bumps [black](https://github.com/psf/black ) from 21.12b0 to 22.1.0.
- [Release notes](https://github.com/psf/black/releases )
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md )
- [Commits](https://github.com/psf/black/commits/22.1.0 )
---
updated-dependencies:
- dependency-name: black
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
* Update black
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch >
2022-02-10 14:13:40 +01:00
Pascal Vizeli
6a0206c1e7
Next generation hardware handling ( #2429 )
...
* Next generation hardware handling
* need daemon for some details
* fix tests
* fix wrong coresys lookup
* test initial import
* test device lookup
* validate if device exists
* Add cgroups rules manager
* mapping udev from host
* Modify validation/options handling
* lookup devices
* add support for host udev mapping
* next
* Add policy support to add-ons
* Depricate hardware trigger call
* next cleanup round
* detect USB linking
* optimize
* readd udev utils for backwards compatibility
* fix tests
* Add more tests
* fix tests
* Make device explicit
* Add filter
* work on tests
* Add migration step
* clean out auto_uart
* Fix all tests
* Expose all device information
* small improvment
* Fix loop over right devices
* Use migration for new device format
* Update rootfs/etc/cont-init.d/udev.sh
Co-authored-by: Franck Nijhof <git@frenck.dev >
* Fix old helper
* Fix API
* add helper for by-id
* fix tests
* Fix serial helper
* Fix hardware API schema
* Hide some virtual devices from tracking
* Apply suggestions from code review
Co-authored-by: Stefan Agner <stefan@agner.ch >
* Update supervisor/addons/validate.py
Co-authored-by: Stefan Agner <stefan@agner.ch >
* Update supervisor/addons/validate.py
Co-authored-by: Stefan Agner <stefan@agner.ch >
* fix lint
* Apply suggestions from code review
Co-authored-by: Joakim Sørensen <joasoe@gmail.com >
* Apply suggestions from code review
Co-authored-by: Joakim Sørensen <joasoe@gmail.com >
* fix black
* fix lint
Co-authored-by: Franck Nijhof <git@frenck.dev >
Co-authored-by: Stefan Agner <stefan@agner.ch >
Co-authored-by: Joakim Sørensen <joasoe@gmail.com >
2021-01-28 15:26:56 +01:00
Pascal Vizeli
aa5297026f
Handle Store suggestion ( #2306 )
...
* Handle Store suggestion
* Add fixup
* Add more fixup & list
* Enable fixups
* Add tests
* fix index
* fix break
* fix import
* Load it anyway
* Run suFix ccestion on load too
* fix error message
* fix error message
* Fix remove
* Finishing
* Add tests
* Fix error
* fix cleanup stale stuff
* Fix source
* use source as url
* add test for url
* Apply suggestions from code review
Co-authored-by: Joakim Sørensen <joasoe@gmail.com >
Co-authored-by: Joakim Sørensen <joasoe@gmail.com >
2020-11-28 15:03:44 +01:00