Commit Graph

275 Commits (527775a5f1b2696517cf4e3c8d51aa3bc0ca6cfe)

Author SHA1 Message Date
Sid 6d22dd073c
Bump ruff to 0.3.7 (#115451)
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2024-04-12 16:03:23 +02:00
Marc Mueller a0e6fd6ec5
Add improved typing for event fire and listen methods (#114906)
* Add EventType implementation

* Update integrations for EventType

* Change state_changed to EventType

* Fix tests

* Remove runtime impact

* Add tests

* Move to stub file

* Apply pre-commit to stub files

* Fix ruff PYI checks

---------

Co-authored-by: J. Nick Koston <nick@koston.org>
2024-04-07 13:28:24 -10:00
Joost Lekkerkerker 991a4940cd
Bump ruff to 0.3.5 (#114634) 2024-04-02 13:53:58 +02:00
Robert Resch 476e39dd2c
Bump uv to 0.1.27 (#114629) 2024-04-02 13:19:50 +02:00
Joost Lekkerkerker 6bb4e7d62c
Bump ruff to 0.3.4 (#112690)
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-26 00:02:16 +01:00
Marc Mueller 49a4fe41c6
Update codespell to 2.2.6 (#114167) 2024-03-25 12:33:25 +01:00
Marc Mueller 5d293f92b2
Update yamllint to 1.35.1 (#114166) 2024-03-25 11:22:55 +01:00
Marc Mueller 545b888034
Update ruff to 0.2.1 (#109796)
* Update ruff to 0.2.1

* Rename config sections

* Update remapped error codes

* Add ignores
2024-02-06 15:41:34 +01:00
Marc Mueller d2dee9e327
Update ruff to 0.1.15 (#109303) 2024-02-01 13:29:01 +01:00
Franck Nijhof 618cfe587a
Ensure pre-commit runs hassfest when icons change (#108470) 2024-01-20 13:28:11 +01:00
Ville Skyttä 24b1e01d71
Update Ruff to 0.1.8, avoid linter/formatter conflicts (#106080)
* Disable Ruff rules that may conflict with the formatter

* Upgrade Ruff to 0.1.8

- https://github.com/astral-sh/ruff/releases/tag/v0.1.7
- https://github.com/astral-sh/ruff/releases/tag/v0.1.8

* Format with Ruff 0.1.8
2023-12-20 23:55:09 +01:00
Aarni Koskela 706add4a57
Switch formatting from black to ruff-format (#102893)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-11-27 14:38:59 +01:00
Franck Nijhof 24a65808ac
Update black to 23.11.0 (#103644) 2023-11-08 13:08:41 +01:00
Ville Skyttä 7d598801fe
Update prettier to 3.0.3 (#102929) 2023-10-28 08:56:26 -05:00
Franck Nijhof 29f61349ea
Update black to 23.10.0 (#102420) 2023-10-20 14:19:04 -10:00
Franck Nijhof 55a8f01dcf
Update ruff to v0.1.1 (#102421) 2023-10-20 12:33:07 -10:00
Franck Nijhof 2f0ba154b9
Update ruff to v0.0.292 (#101290) 2023-10-02 21:49:10 +02:00
Joost Lekkerkerker a111988232
Make codespell ignore snapshots (#100463) 2023-09-15 20:39:14 +02:00
Ville Skyttä fa0b999d08
Upgrade ruff to 0.0.289 (#100238) 2023-09-12 22:22:10 +02:00
Marc Mueller 58072189fc
Update black to 23.9.1 (#100108) 2023-09-11 12:14:50 +02:00
Marc Mueller 483e9c92bd
Update black to 23.9.0 (#99965) 2023-09-09 07:53:25 -05:00
Ville Skyttä 3094991236
Upgrade ruff to 0.0.285 (#98647) 2023-08-19 08:17:17 -04:00
Marc Mueller 1fa66953b4
Use mirror to run `black` with pre-commit (#95605) 2023-08-03 13:21:07 +02:00
Marc Mueller 4d9b73033d
Update python-typing-update to 0.6.0 (#97531) 2023-07-31 17:59:40 +02:00
Joost Lekkerkerker 2bd6b519fa
Remove unused words from codespell check (#97152)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-07-24 19:29:24 +02:00
Joost Lekkerkerker 549fef08ad
Make Codespell skip snapshot tests (#97150) 2023-07-24 18:46:54 +02:00
Franck Nijhof 86708b5590
Update ruff to v0.0.280 (#97102) 2023-07-23 22:00:26 +02:00
Franck Nijhof 06aeacc324
Update black to 23.7.0 (#96901) 2023-07-19 14:42:35 +02:00
Franck Nijhof 303e549213
Update yamllint to 1.32.0 (#96109)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-07-10 10:13:48 +02:00
Franck Nijhof 18dddd6342
Update Ruff to v0.0.277 (#96108) 2023-07-09 10:10:23 -04:00
Marc Mueller 432bfffef9
Update ruff pre-commit repo (#95603) 2023-07-01 12:12:24 +02:00
Franck Nijhof c3936e6f14
Replace isort with ruff (#94302) 2023-06-08 23:43:56 +02:00
Ville Skyttä ca936d0b38
Replace bandit with ruff (#93200) 2023-06-08 22:46:04 +02:00
Ville Skyttä f7938c940c
Upgrade ruff to 0.0.272 (#94290) 2023-06-08 21:53:43 +02:00
Franck Nijhof 65d7e48815
Update ruff to v0.0.262 (#91767) 2023-04-21 08:15:41 +02:00
Franck Nijhof 6bad5f02c6
Update black to 23.3.0 (#90569) 2023-03-31 12:20:08 +02:00
Franck Nijhof b9f0701336
Update ruff to v0.0.260 (#90566) 2023-03-31 11:43:28 +02:00
Franck Nijhof fd5b57ae6c
Drop autoflake in favor of Ruff (#89874) 2023-03-17 21:37:41 +01:00
Franck Nijhof a15c45dbfe
Drop pyupgrade in favor of Ruff (#89865) 2023-03-17 14:17:05 +01:00
Franck Nijhof b1a3bfb298
Drop flake8 in favor of Ruff (#89863) 2023-03-17 13:30:06 +01:00
epenet 9719f817c0
Bump ruff to 0.0.256 (#89734) 2023-03-15 10:07:12 +01:00
epenet ff2a88b426
Bump ruff to 0.0.254 (#89273) 2023-03-07 13:25:31 +01:00
epenet 91e389c58d
Bump ruff to 0.0.253 (#89211)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-03-06 16:16:31 +01:00
Franck Nijhof d3ed8de232
Update Ruff to v0.0.247 (#88210)
* Update Ruff to v0.0.247

* Fix new found violations
2023-02-15 16:46:03 -05:00
Arturo e84a11963e
Add color support to matter lights (#87366)
* Added the correct attributes to ColorTemperatureLight and ExtendedColorLight and added CurrentY to codespell ignore word list

* Added enums for matter color modes

* Added support for reading color and color temperature settings from matter api

* Added away of getting the ColorControl featureMap while the get_cluster(ColorControl) function is fixed

* Initial working implementation of color and color temperature

* Full supports for lights with both hs and xy

* Added checks to make sure color features are supported before making matter call

* Changed how color mode is figured out

* Moved the logic that gets the brightness to its own function

* Adds matter light tests for hass triggered events

* Adds full test coverage for matter all types of matter lights

* Adds full test coverage for matter all types of matter lights

* Moved light convertion logic to util.py

* Reorderd codespell ignore list and removed unused code

* Adds brightness state test
2023-02-07 20:44:02 +01:00
Aarni Koskela ee6773236e
Update Ruff to 0.0.241 (#87386)
Changes: https://github.com/charliermarsh/ruff/compare/v0.0.237...v0.0.241
2023-02-04 14:42:36 -05:00
Franck Nijhof 5e81d28116
Update black to 23.1.0 (#87188) 2023-02-02 18:35:24 +01:00
Franck Nijhof 1958dd5550
Update ruff to v0.0.237 (#86932) 2023-01-30 10:15:24 +01:00
Joakim Sørensen f9e8247401
Bump isort from 5.11.4 to 5.12.0 (#86890) 2023-01-29 15:04:17 +01:00
Franck Nijhof eb5d63237c
Update ruff to v0.0.235 (#86719) 2023-01-26 17:17:13 +01:00
Aarni Koskela 65ad953497
Update Ruff to 0.0.231, enable D401 (#86520) 2023-01-24 13:57:08 +01:00
Aarni Koskela bf41a971a2
Introduce ruff (eventually replacing autoflake, pyupgrade, flake8) (#86224) 2023-01-24 12:15:16 +01:00
Marc Mueller 4f87c1f30f
Update pre-commit-config [Py310] (#86415) 2023-01-23 09:59:44 +01:00
Aarni Koskela b0ed0d5d41
Bump pre-commit-hooks to 4.4.0 (#82984) 2023-01-23 08:43:51 +01:00
Max R 156c815499
Run `flake8` on more files (#85333)
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
Co-authored-by: Dave T <17680170+davet2001@users.noreply.github.com>
2023-01-16 20:53:14 +01:00
Marc Mueller 8f7aca7b69
Update pydocstyle to 6.2.3 (#85449) 2023-01-09 00:59:07 +02:00
Marc Mueller ac183b1394
Update isort to 5.11.4 (#84406) 2022-12-21 23:06:18 +01:00
Franck Nijhof 4ad589dcf6
Update black to 22.12.0 (#84242) 2022-12-19 16:43:53 +01:00
tronikos d6158c0fcc
Google Assistant SDK: Support non en-US language code (#84028)
* Support non en-US language code

* Get default language_code based on HA config

* Revert bumping gassist-text
Will be done in a separate PR
2022-12-17 14:40:24 -08:00
Marc Mueller ed8aa51c76
Update isort to 5.11.3 (#84147) 2022-12-17 22:10:38 +01:00
Marc Mueller 813226e331
Update pyupgrade to 3.3.1 (#84148) 2022-12-17 22:10:13 +01:00
Ville Skyttä 8f9baafac1
Tweak black config (#83230)
* Remove `--safe` from pre-commit args, it's the default

* Extend exclusions instead of overriding, improve regex
2022-12-04 17:12:37 -05:00
Marc Mueller 2c43873317
Update codespell to 2.2.2 (#82856) 2022-11-28 17:52:15 +01:00
Marc Mueller 15f95a0787
Update flake8 and related dependencies (#82854) 2022-11-28 14:49:11 +01:00
Marc Mueller 476821bbf8
Update pyupgrade to 3.2.2 (#82855) 2022-11-28 13:55:04 +01:00
Erik Montnemery e1338adf1a
Allow configuring country and language in core config (#81734)
* Allow configuring country and language in core config

* Add script for updating list of countries

* Use black for formatting

* Fix quoting

* Move country codes to a separate file

* Address review comments

* Add generated/countries.py

* Get default language from owner account

* Remove unused variable

* Add script to generate list of supported languages

* Add tests

* Fix stale docsring

* Use format_python_namespace

* Correct async_user_store

* Improve typing

* Fix with_store decorator

* Initialize language in core store migration

* Fix startup

* Tweak

* Apply suggestions from code review

Co-authored-by: Franck Nijhof <git@frenck.dev>

* Update storage.py

Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-11-24 23:25:50 +01:00
Erik Montnemery b566d55998
Sort ignore-words-list (#82520) 2022-11-22 11:26:53 +01:00
Aarni Koskela e4c73259f7
Configure autoflake for pre-commit (#82414) 2022-11-22 08:10:36 +01:00
Erik Montnemery c3d4a9cd99
Create repairs issue if an outdated currency code is configured (#81717)
* Create repairs issue if an outdated currency code is configured

* Add script for updating list of currencies

* Use black for formatting

* Move currency codes to a separate file

* Address review comments
2022-11-08 07:21:09 +01:00
Ville Skyttä 9bc029000a
Upgrade prettier to v2.7.1 (#81682)
No formatting changes.

https://github.com/prettier/prettier/blob/2.7.1/CHANGELOG.md
2022-11-07 09:09:47 +01:00
Franck Nijhof 086a1bdace
Update yamllint to 1.28.0 (#80497) 2022-10-18 11:42:57 +03:00
Marc Mueller a63c9e8fb9
Update python-typing-update to 0.5.0 (#80315) 2022-10-14 13:21:37 +02:00
Marc Mueller 4e5b5dfb93
Update pyupgrade to 3.1.0 (#80058)
* Update pyupgrade to 3.1.0

* Remove redundant open modes - text is the default
2022-10-11 09:04:52 +02:00
Franck Nijhof f8f4b059a1
Update black to 22.10.0 (#80006) 2022-10-10 14:19:09 +02:00
Franck Nijhof 56dd0a6867
Run hassfest in pre-commit when brands changed (#79589) 2022-10-04 16:41:11 +02:00
Paulus Schoutsen 62c114e849
Add Apple brand (#79227) 2022-09-28 16:21:09 -04:00
Franck Nijhof fbd265aa2d
Update pyupgrade to v2.38.0 (#78573) 2022-09-16 12:51:58 +02:00
Franck Nijhof 6dc3c0b572
Update black to 22.8.0 (#78509) 2022-09-15 12:45:18 +02:00
epenet 23168434d5
Add pylint directory to black pre-commit (#78011)
Add pylint to black CI
2022-09-08 09:14:58 +02:00
Franck Nijhof 2b2ea3dd73
Update flake8-noqa to 1.2.8 (#76506) 2022-08-09 09:35:38 -04:00
Franck Nijhof ce871835b2
Update pyupgrade to v2.37.3 (#76257) 2022-08-05 01:04:10 +02:00
Marc Mueller 503e88642e
Update pyupgrade to 2.37.2 (#75456) 2022-07-19 21:06:18 +02:00
Paulus Schoutsen 41ec8cd354
Expose supported brands via API (#75074) 2022-07-12 13:49:54 -07:00
Franck Nijhof af2feb3d40
Update pyupgrade to v2.37.1 (#74989) 2022-07-11 16:54:01 +02:00
Franck Nijhof 08887a6faa
Update yamllint to 1.27.1 (#74853) 2022-07-10 14:57:46 -07:00
Franck Nijhof 8054e309b3
Update flake8-noqa to 1.2.5 (#74896) 2022-07-10 14:23:40 -07:00
Franck Nijhof 52130b227e
Update flake8-comprehensions to 3.10.0 (#74882) 2022-07-10 14:55:43 +02:00
epenet 1bfd8b1a76
Add enforce_type_hints to vscode tasks (#74227) 2022-06-30 20:49:41 +02:00
Franck Nijhof fdb7a23171
Update black to 22.6.0 (#74209)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-06-30 10:08:06 +02:00
Franck Nijhof 8007effd4f
Update pyupgrade to v2.34.0 (#73530) 2022-06-15 13:32:39 +02:00
epenet fe5fe148fa
Add mypy checks to pylint plugins (#72821) 2022-06-02 00:06:19 +02:00
Marc Mueller 1ac71455cb
Move remaining metadata to pyproject (#72469) 2022-05-26 02:54:49 +02:00
Franck Nijhof ace2f18697
Update pyupgrade to v2.32.1 (#71939) 2022-05-16 13:58:54 +02:00
Marc Mueller 2346cb1cd7
Update pyupgrade to 2.32.0 (#69991) 2022-04-13 20:23:19 +02:00
epenet 93706ca21a
Bump prettier to v2.6.1 and enable on CI (#68877) 2022-03-30 13:10:48 +02:00
Jason Hunter 7f5ee53d51
Fix pre-commit by upgrading black (#68855) 2022-03-29 15:29:30 -04:00
Franck Nijhof cdc78ee129
Update isort to 5.10.1 (#68564) 2022-03-23 14:47:43 +01:00
Franck Nijhof fabcdf7498
Update flake8-comprehensions to 3.8.0 (#68164) 2022-03-15 11:06:13 +01:00
Franck Nijhof fb703ddc5d
Update pyupgrade to v2.31.1 (#68110) 2022-03-14 11:36:34 +01:00
Ville Skyttä ca32c38859
Upgrade bandit to 1.7.4 (#67669)
No new issues flagged.

https://github.com/PyCQA/bandit/releases/tag/1.7.1
https://github.com/PyCQA/bandit/releases/tag/1.7.2
https://github.com/PyCQA/bandit/releases/tag/1.7.3
https://github.com/PyCQA/bandit/releases/tag/1.7.4
2022-03-05 20:13:30 +01:00