Commit Graph

164 Commits (14ee3f1ddc7295e27242751fac5768abaae2e80c)

Author SHA1 Message Date
Ville Skyttä 8f9baafac1
Tweak black config ()
* 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 () 2022-11-28 17:52:15 +01:00
Marc Mueller 15f95a0787
Update flake8 and related dependencies () 2022-11-28 14:49:11 +01:00
Marc Mueller 476821bbf8
Update pyupgrade to 3.2.2 () 2022-11-28 13:55:04 +01:00
Erik Montnemery e1338adf1a
Allow configuring country and language in core config ()
* 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 () 2022-11-22 11:26:53 +01:00
Aarni Koskela e4c73259f7
Configure autoflake for pre-commit () 2022-11-22 08:10:36 +01:00
Erik Montnemery c3d4a9cd99
Create repairs issue if an outdated currency code is configured ()
* 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 ()
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 () 2022-10-18 11:42:57 +03:00
Marc Mueller a63c9e8fb9
Update python-typing-update to 0.5.0 () 2022-10-14 13:21:37 +02:00
Marc Mueller 4e5b5dfb93
Update pyupgrade to 3.1.0 ()
* 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 () 2022-10-10 14:19:09 +02:00
Franck Nijhof 56dd0a6867
Run hassfest in pre-commit when brands changed () 2022-10-04 16:41:11 +02:00
Paulus Schoutsen 62c114e849
Add Apple brand () 2022-09-28 16:21:09 -04:00
Franck Nijhof fbd265aa2d
Update pyupgrade to v2.38.0 () 2022-09-16 12:51:58 +02:00
Franck Nijhof 6dc3c0b572
Update black to 22.8.0 () 2022-09-15 12:45:18 +02:00
epenet 23168434d5
Add pylint directory to black pre-commit ()
Add pylint to black CI
2022-09-08 09:14:58 +02:00
Franck Nijhof 2b2ea3dd73
Update flake8-noqa to 1.2.8 () 2022-08-09 09:35:38 -04:00
Franck Nijhof ce871835b2
Update pyupgrade to v2.37.3 () 2022-08-05 01:04:10 +02:00
Marc Mueller 503e88642e
Update pyupgrade to 2.37.2 () 2022-07-19 21:06:18 +02:00
Paulus Schoutsen 41ec8cd354
Expose supported brands via API () 2022-07-12 13:49:54 -07:00
Franck Nijhof af2feb3d40
Update pyupgrade to v2.37.1 () 2022-07-11 16:54:01 +02:00
Franck Nijhof 08887a6faa
Update yamllint to 1.27.1 () 2022-07-10 14:57:46 -07:00
Franck Nijhof 8054e309b3
Update flake8-noqa to 1.2.5 () 2022-07-10 14:23:40 -07:00
Franck Nijhof 52130b227e
Update flake8-comprehensions to 3.10.0 () 2022-07-10 14:55:43 +02:00
epenet 1bfd8b1a76
Add enforce_type_hints to vscode tasks () 2022-06-30 20:49:41 +02:00
Franck Nijhof fdb7a23171
Update black to 22.6.0 ()
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 () 2022-06-15 13:32:39 +02:00
epenet fe5fe148fa
Add mypy checks to pylint plugins () 2022-06-02 00:06:19 +02:00
Marc Mueller 1ac71455cb
Move remaining metadata to pyproject () 2022-05-26 02:54:49 +02:00
Franck Nijhof ace2f18697
Update pyupgrade to v2.32.1 () 2022-05-16 13:58:54 +02:00
Marc Mueller 2346cb1cd7
Update pyupgrade to 2.32.0 () 2022-04-13 20:23:19 +02:00
epenet 93706ca21a
Bump prettier to v2.6.1 and enable on CI () 2022-03-30 13:10:48 +02:00
Jason Hunter 7f5ee53d51
Fix pre-commit by upgrading black () 2022-03-29 15:29:30 -04:00
Franck Nijhof cdc78ee129
Update isort to 5.10.1 () 2022-03-23 14:47:43 +01:00
Franck Nijhof fabcdf7498
Update flake8-comprehensions to 3.8.0 () 2022-03-15 11:06:13 +01:00
Franck Nijhof fb703ddc5d
Update pyupgrade to v2.31.1 () 2022-03-14 11:36:34 +01:00
Ville Skyttä ca32c38859
Upgrade bandit to 1.7.4 ()
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
Joakim Sørensen 9f57ce504b
Use GraphQL for GitHub integration () 2022-02-20 11:59:11 +01:00
Franck Nijhof fa09cf663e
Update black to 22.1.0 () 2022-02-05 14:19:37 +01:00
Ville Skyttä 27d5be71dd
Update python-typing-update config to py39plus () 2022-01-30 20:16:14 -08:00
Marc Mueller 7d949a7665
Add dedicated pre-commit hook for mypy_config [hassfest] () 2022-01-28 19:46:17 +01:00
Marc Mueller 75f39f9ca2
Move version metadata key to setup.cfg ()
* Move version to setup.cfg
* Move python_requires to setup.cfg
* Add script to validate project metadata
* Add dedicated pre-commit hook
2022-01-28 13:36:20 +01:00
Marc Mueller 86ed720335
Move `install_requires` to `setup.cfg` () 2022-01-27 22:34:18 -08:00
Michael a5eac99208
Add pylint to pre-commit hooks () 2022-01-24 12:00:49 +01:00
Franck Nijhof 7a2b699371
Update codespell to 2.1.0 () 2022-01-21 22:05:24 +01:00
Marc Mueller 55894d0bf9
Run pre-commit `hassfest` on changes to script files () 2022-01-16 17:02:05 +01:00
Marc Mueller 99d648fde6
Fix pre-commit gen_requirements_all files regex () 2022-01-14 01:04:12 +01:00
Marc Mueller 30bd3234de
Run pre-commit script on constraint changes () 2022-01-13 22:14:43 +01:00