Felipe Santos
bc57deb474
Use Docker BuildKit to build addons ( #5974 )
...
* Use Docker BuildKit to build addons
* Improve error message as suggested by CodeRabbit
* Fix container.remove() tests missing v=True
* Ignore squash rather than falling back to legacy builder
* Use version rather than tag to avoid confusion in run_command()
* Fix tests differently
* Use PropertyMock like other tests
* Restore position of fix_label fn
* Exempt addon builder image from unsupported checks
* Refactor tests
* Fix tests expecting wrong builder image
* Remove harcoded paths
* Fix tests
* Remove get_addon_host_path() function
* Use docker buildx build rather than docker build
Co-authored-by: Stefan Agner <stefan@agner.ch >
---------
Co-authored-by: Stefan Agner <stefan@agner.ch >
2025-07-02 17:33:41 +02:00
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
Mike Degatano
6ef4f3cc67
Add blockbuster library and find I/O from unit tests ( #5731 )
...
* Add blockbuster library and find I/O from unit tests
* Fix lint and test issue
* Fixes from feedback
* Avoid modifying webapp object in executor
* Split su options validation and only validate timezone on change
2025-03-06 16:40:13 -05:00
Mike Degatano
31193abb7b
FileConfiguration uses executor for I/O ( #5652 )
...
* FileConfiguration uses executor for I/O
* Fix credentials tests
* Remove migrate_system_env as its very deprecated
2025-02-26 19:11:11 +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
Mike Degatano
50a2e8fde3
Allow adoption of existing data disk ( #4991 )
...
* Allow adoption of existing data disk
* Fix existing tests
* Add test cases and fix image issues
* Fix addon build test
* Run checks during setup not startup
* Addon load mimics plugin and HA load for docker part
* Default image accessible in except
2024-04-10 10:25:22 +02:00
Pascal Vizeli
2ddb5ca53f
Support arch specific dockerfiles ( #4022 )
2022-11-28 09:09:22 +01:00
Franck Nijhof
3f88236495
Support for Docker manifests base images add-on build ( #3724 )
...
* Support for Docker manifests base images add-on build
* Set platform for build and tests
* Remove empty test
Co-authored-by: Mike Degatano <michael.degatano@gmail.com >
2022-08-16 14:34:32 +02:00
dependabot[bot]
dafc2cfec2
Bump pyupgrade from 2.26.0 to 2.26.0.post1 ( #3131 )
...
* Bump pyupgrade from 2.26.0 to 2.26.0.post1
Bumps [pyupgrade](https://github.com/asottile/pyupgrade ) from 2.26.0 to 2.26.0.post1.
- [Release notes](https://github.com/asottile/pyupgrade/releases )
- [Commits](https://github.com/asottile/pyupgrade/commits )
---
updated-dependencies:
- dependency-name: pyupgrade
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
* Update .pre-commit-config.yaml
* Fixes
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch >
2021-09-21 18:22:56 +02:00
Pascal Vizeli
a4a0b43d91
Using ghcr.io/home-assistant + fallback ( #2959 )
2021-06-14 20:07:44 +02:00
Pascal Vizeli
e27337da85
Improve local build / allow cache on dev ( #2810 )
2021-04-15 08:19:58 +02:00
Pascal Vizeli
09203f67b2
Fix defaults for builds ( #2675 )
2021-03-04 11:48:25 +01:00
Joakim Sørensen
bee55d08fb
Create FileConfiguration baseclass ( #2651 )
2021-03-01 12:26:43 +01:00
Franck Nijhof
6bb0210f1f
Fix add-on is_valid check ( #2497 )
2021-02-01 11:27:34 +01:00
Pascal Vizeli
72db591576
Validate build env before using it ( #2492 )
2021-02-01 09:46:48 +01:00
Pascal Vizeli
97c35de49a
Refacture version handling with AwesomeVersion ( #2392 )
...
* Refacture version handling with AwesomeVersion
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* next
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* next
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* next
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* v20.12.3
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* next
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* next
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* fix exception
* fix schema
* cleanup plugins
* fix tests
* fix attach
* fix TypeError
* fix issue with compairing
* make lint happy
* Update supervisor/homeassistant/__init__.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com >
* Update tests/test_validate.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com >
* Update supervisor/docker/__init__.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com >
* Update supervisor/supervisor.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com >
Co-authored-by: Joakim Sørensen <joasoe@gmail.com >
2020-12-31 17:09:33 +01:00
Franck Nijhof
f0d46e8671
Improve flake8 configuration and pydocstyle fixes ( #1742 )
2020-05-22 13:38:57 +02:00
Franck Nijhof
1d83c0c77a
Update isort configuration and sorts imports in codebase ( #1739 )
...
* Add known first party to isort configuration
* Run isort on supervisor and tests folder
2020-05-21 13:30:54 +02:00
Pascal Vizeli
4ac7f7dcf0
Rename Hass.io -> Supervisor ( #1522 )
...
* Rename Hass.io -> Supervisor
* part 2
* fix lint
* fix auth name
2020-02-21 17:55:41 +01:00