Commit Graph

555 Commits (e7f44048e942f75db8e0af7b8ccf955853df01e8)

Author SHA1 Message Date
Franck Nijhof a7a972fe96
Upgrade pytest-xdist to 3.2.1 (#89857) 2023-03-17 13:43:16 +01:00
epenet b4c1c0beb7
Bump pytest-xdist to 3.2.0 (#89501) 2023-03-10 13:08:45 +01:00
epenet 0f15f8b84b
Bump pytest-sugar to 0.9.6 (#89500) 2023-03-10 12:58:29 +01:00
Marc Mueller 386533a16f
Update mypy to 1.1.1 (#89268)
* Update mypy to 1.1.1
* Update pydantic to 1.10.6
2023-03-08 22:57:54 +01:00
Marc Mueller bfb89fd8f2
Update pylint to 2.17.0 (#89377)
* Update pylint to 2.17.0

* Remove unused pylint disable comments
2023-03-08 10:54:19 -05:00
Marc Mueller b407227d4a
Update pylint to 2.16.4 (#89240) 2023-03-06 17:50:42 +01:00
Franck Nijhof a0ff95cef8
Update pytest to 7.2.2 (#89179) 2023-03-05 19:47:52 -05:00
Franck Nijhof 3e1d9deb29
Update coverage to 7.2.1 (#89196) 2023-03-05 19:47:07 -05:00
Franck Nijhof 6511b3f355
Update pre-commit to 3.1.0 (#88657) 2023-02-23 10:59:47 +01:00
Franck Nijhof 564f714386
Update pipdeptree to 2.5.0 (#88390) 2023-02-19 18:09:26 +01:00
Marc Mueller 97d9951d8a
Update mypy to 1.0.1 (#88361) 2023-02-18 10:02:41 +01:00
Franck Nijhof 6891eb7ed1
Add support for snapshot testing (#88323)
* Add support for snapshot testing

* Use snapshots in Elgato diagnostics test

* Use snapshots in Elgato sensor test

* Fix flake8 warning

* Slightly improve serialized output

* Remove snapshot naming in elgato sensor tests

* Improve snapshoting of via_device_id in device registry item

* Update pylint typehints plugin for snapshot fixture typing

* Use snapshots in Elgato configflow test

* Use snapshots in Bluetooth repair issue tests
2023-02-17 16:35:55 -05:00
Marc Mueller 567c7f4f99
Update pydantic to 1.10.5 (#88250) 2023-02-16 14:01:59 +01:00
Franck Nijhof b0146618cb
Update pytest-asyncio to 0.20.3 (#87995) 2023-02-13 12:40:19 +01:00
Marc Mueller 67499e0204
Enable pydantic mypy plugin (#87415) 2023-02-09 13:33:10 +01:00
Marc Mueller 4fbb14ecc7
Update mypy to 1.0.0 (#87586) 2023-02-07 02:31:14 +01:00
Franck Nijhof f3e74469db
Update coverage to 7.1.0 (#87328) 2023-02-03 15:48:47 -05:00
Marc Mueller 07a3046d11
Update pylint to 2.16.0 (#87083) 2023-02-02 12:49:01 +01:00
Franck Nijhof 42c4f2f7fa
Add ability for pytest to run only on changed tests in codebase (#86776) 2023-01-27 10:35:18 +01:00
Franck Nijhof 14d3911bfd
Update pre-commit to 3.0.0 (#86518) 2023-01-24 13:09:01 +01:00
Aarni Koskela bf41a971a2
Introduce ruff (eventually replacing autoflake, pyupgrade, flake8) (#86224) 2023-01-24 12:15:16 +01:00
Franck Nijhof 5102d1a5f3
Drop Python 3.9 support (#85456) 2023-01-22 20:40:33 +01:00
epenet 30bf0634fe
Add per-file-ignore to pylint (#86289) 2023-01-22 17:26:24 +01:00
Marc Mueller f0ba7a3795
Update pylint to 2.15.10 (#86167) 2023-01-18 15:01:24 +01:00
Franck Nijhof ce43a53585
Update pytest to 7.2.1 (#85990) 2023-01-16 09:48:39 +01:00
Franck Nijhof db5edfcf64
Update coverage to 7.0.5 (#85774) 2023-01-12 21:40:59 +01:00
Franck Nijhof a36709cc8d
Update coverage to 7.0.3 (#85197) 2023-01-05 23:54:31 +01:00
Franck Nijhof 9c36f05ac4
Update coverage to 7.0.2 (#85020) 2023-01-02 13:43:20 -10:00
Franck Nijhof bfdca4b274
Update pre-commit to 2.21.0 (#84768) 2022-12-29 14:09:26 +01:00
Franck Nijhof 7768084655
Update coverage to 7.0.1 (#84764) 2022-12-29 12:24:32 +01:00
Joakim Plate 850c082649
Switch to pytest-freezer (#84680) 2022-12-28 15:43:03 +01:00
Marc Mueller 19acbf0d2a
Update types packages (#84381) 2022-12-21 19:15:55 +01:00
Erik Montnemery 1f3da9cf1a
Add aliases to entity registry items (#84239) 2022-12-20 12:10:46 +01:00
Franck Nijhof 952bf5497f
Update coverage to 7.0.0 (#84237) 2022-12-19 16:42:34 +01:00
Marc Mueller 9a97784168
Add types package for paho-mqtt (#83599) 2022-12-09 15:27:46 +01:00
Marc Mueller 1ca9824191
Update pylint to 2.15.8 (#83311) 2022-12-05 10:01:27 -05:00
Allen Porter 532ab12a48
Local calendar integration (#79601) 2022-11-30 21:20:21 +01:00
Marc Mueller 490aec0b11
Update pylint to 2.15.7 (#82977) 2022-11-30 12:20:18 +01:00
Joakim Plate c576a68d33
Upgrade pytest-aiohttp (#82475)
* Upgrade pytest-aiohttp

* Make sure executors, tasks and timers are closed

Some test will trigger warnings on garbage collect, these warnings
spills over into next test.

Some test trigger tasks that raise errors on shutdown, these spill
over into next test.

This is to mimic older pytest-aiohttp and it's behaviour on test
cleanup.

Discussions on similar changes for pytest-aiohttp are here:
https://github.com/pytest-dev/pytest-asyncio/pull/309

* Replace loop with event_loop

* Make sure time is frozen for tests

* Make sure the ConditionType is not async

  /home-assistant/homeassistant/helpers/template.py:2082: RuntimeWarning: coroutine 'AsyncMockMixin._execute_mock_call' was never awaited
    def wrapper(*args, **kwargs):
  Enable tracemalloc to get traceback where the object was allocated.
  See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.

* Increase litejet press tests with a factor 10

The times are simulated anyway, and we can't stop the normal
event from occuring.

* Use async handlers for aiohttp

tests/components/motioneye/test_camera.py::test_get_still_image_from_camera
tests/components/motioneye/test_camera.py::test_get_still_image_from_camera
tests/components/motioneye/test_camera.py::test_get_stream_from_camera
tests/components/motioneye/test_camera.py::test_get_stream_from_camera
tests/components/motioneye/test_camera.py::test_camera_option_stream_url_template
tests/components/motioneye/test_camera.py::test_camera_option_stream_url_template
  /Users/joakim/src/hass/home-assistant/venv/lib/python3.9/site-packages/aiohttp/web_urldispatcher.py:189: DeprecationWarning: Bare functions are deprecated, use async ones
    warnings.warn(

* Switch to freezegun in modbus tests

The tests allowed clock to tick in between steps

* Make sure skybell object are fully mocked

Old tests would trigger attempts to post to could services:

```
DEBUG:aioskybell:HTTP post https://cloud.myskybell.com/api/v3/login/ Request with headers: {'content-type': 'application/json', 'accept': '*/*', 'x-skybell-app-id': 'd2b542c7-a7e4-4e1e-b77d-2b76911c7c46', 'x-skybell-client-id': '1f36a3c0-6dee-4997-a6db-4e1c67338e57'}
```

* Fix sorting that broke after rebase
2022-11-29 22:36:36 +01:00
uvjustin 9390359fe3
Bump httpx to 0.23.1 (#82725) 2022-11-26 10:04:22 -10:00
Marc Mueller 8f33ad38cf
Update pylint to 2.15.6 (#82440)
* Update pylint to 2.15.6

* Use single pylint disable

* Use implicit dict constructor
2022-11-21 08:58:45 +01:00
Marc Mueller 2ac2a288cc
Update mypy to 0.991 (#82096) 2022-11-14 21:16:44 +01:00
Marc Mueller 0c8eeaa643
Update mypy to 0.990 (#81783)
* Update mypy to 0.990

* Remove type ignore - overriding attr with property (13475)

* Remove type ignores - hasattr (13544)

* Adjust type ignore - assignment (13549)

* New error code - type-abstract (13785)

* Disable annotation-unchecked (13851)
2022-11-08 14:41:39 +01:00
Franck Nijhof be68412c64
Update pytest to 7.2.0 (#81295) 2022-10-31 13:26:05 +01:00
Marc Mueller 7714ce7235
Update pylint to 2.15.5 (#80759) 2022-10-22 00:07:23 +02:00
Marc Mueller d78c2a31a1
Update pylint to 2.15.4 (#80612) 2022-10-20 08:59:06 +02:00
Franck Nijhof 503b765108
Update freezegun to 1.2.2 (#80498) 2022-10-18 11:42:01 +03:00
Marc Mueller 42de69b6d5
Update mypy to 0.982 (#79560) 2022-10-03 23:21:53 +02:00
Marc Mueller e8156adb13
Update mypy to 0.981 (#79115) 2022-09-26 16:10:06 -04:00
Franck Nijhof 69ca055fd8
Update requests_mock to 1.10.0 (#78510) 2022-09-15 14:33:12 +02:00
Franck Nijhof 19c1065387
Update pytest to 7.1.3 (#78503) 2022-09-15 11:53:40 +02:00
Franck Nijhof ec2afd2bce
Update pipdeptree to 2.3.1 (#78497) 2022-09-15 10:24:18 +02:00
Marc Mueller 7f8e2fa5d4
Pin astroid to fix pylint (#77862) 2022-09-05 17:39:42 -04:00
Marc Mueller 1210897f83
Update pylint to 2.15.0 (#77408)
* Update pylint to 2.15.0

* Remove useless suppressions

* Fix TypeVar name
2022-08-28 21:14:09 +02:00
Franck Nijhof 6e9c67c203
Update coverage to 6.4.4 (#76907) 2022-08-18 10:52:55 +02:00
Marc Mueller f400a404cd
Update pylint to 2.14.5 (#76821) 2022-08-15 23:27:08 +02:00
Franck Nijhof f67a45f643
Update coverage to 6.4.3 (#76443) 2022-08-08 16:16:40 +02:00
Marc Mueller e02a24529f
Update mypy to 0.971 (#75450) 2022-07-19 18:53:19 +02:00
Franck Nijhof d40978742c
Update coverage to 6.4.2 (#75072) 2022-07-12 20:46:04 +02:00
Franck Nijhof ef025bccc0
Update tqdm to 4.64.0 (#75010) 2022-07-11 23:30:48 +02:00
Franck Nijhof 81f74d2053
Update pre-commit to 2.20.0 (#74955) 2022-07-11 10:42:23 +02:00
Franck Nijhof 9ff77e0fa1
Update pytest-sugar is 0.9.5 (#74931) 2022-07-11 00:06:45 +02:00
Franck Nijhof 70ceccb06a
Update respx to 0.19.2 (#74878) 2022-07-10 14:21:14 +02:00
Ville Skyttä dd6725b80a
Replace pylint-strict-informational with `fail-on=I` (#74311)
`fail-on` is available since pylint 2.9.0.

https://pylint.pycqa.org/en/latest/user_guide/configuration/all-options.html#fail-on
https://github.com/PyCQA/pylint/issues/3251#issuecomment-1170941337

Co-authored-by: J. Nick Koston <nick@koston.org>
2022-07-04 23:04:56 +02:00
Marc Mueller 42d7f2a3b2
Update pylint to 2.14.4 (#74192) 2022-06-30 08:56:43 +02:00
Franck Nijhof 42533ebbb3
Update requests to 2.28.1 (#74210) 2022-06-29 20:40:58 -05:00
Marc Mueller 24bf42cfbe
Update pylint to 2.14.3 (#73703) 2022-06-19 16:29:57 +02:00
Franck Nijhof 99db2a5afe
Update requests to 2.28.0 (#73406)
* Update requests to 2.28.0

* Fix mypy warning

* Fix Facebook messenger tests
2022-06-14 12:21:32 +02:00
Franck Nijhof f0a5dbacf8
Update pytest to 7.1.2 (#73417) 2022-06-12 20:48:17 -07:00
Franck Nijhof 23e17c5b47
Update coverage to 6.4.1 (#73405) 2022-06-12 20:17:58 -07:00
Marc Mueller a8763d7479
Update pylint to 2.14.1 (#73144) 2022-06-07 07:57:41 +02:00
Marc Mueller caed0a486f
Update mypy to 0.961 (#73142) 2022-06-06 22:03:52 +02:00
Marc Mueller 983a76a91c
Update pylint to 2.14.0 (#73119) 2022-06-06 21:43:47 +02:00
Marc Mueller 1ac71455cb
Move remaining metadata to pyproject (#72469) 2022-05-26 02:54:49 +02:00
Marc Mueller 3c246b7800
Update mypy to 0.960 (#72481) 2022-05-25 11:42:14 -07:00
Franck Nijhof b2e18682d2
Update coverage to 6.4 (#72347) 2022-05-24 16:31:03 +02:00
Marc Mueller 2d7723169a
Update pylint to 2.13.9 (#71941)
* Update pylint to 2.13.9

* Small change
2022-05-16 15:01:31 +02:00
Franck Nijhof 2e568771a9
Update coverage to 6.3.3 (#71772) 2022-05-13 11:16:56 +03:00
Franck Nijhof 5430b51358
Update pre-commit to 2.19.0 (#71592)
Co-authored-by: Shay Levy <levyshay1@gmail.com>
2022-05-09 23:19:22 +03:00
Marc Mueller 6eef3c16f2
Update pylint to 2.13.8 (#71280) 2022-05-04 12:14:24 +02:00
Marc Mueller 93cbb331e5
Update Mypy to 0.950 (#70948)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-04-27 20:49:54 -05:00
Erik Montnemery f96c1136b0
Bump pytest-socket to 0.5.1 (#69624)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-04-26 10:42:37 -10:00
Marc Mueller 90dab235f7
Update pylint to 2.13.7 (#70381)
* Update pylint to 2.13.7

* Spelling

* Remove old pylint config value

* Code updates
2022-04-21 13:02:52 -07:00
Franck Nijhof f9450d32ea
Update pytest-cov to 3.0.0 (#68611) 2022-04-18 16:31:28 +02:00
Marc Mueller e407960f68
Update pylint to 2.13.5 (#69989) 2022-04-13 18:36:05 +02:00
Marc Mueller fa33ac73f3
Update pylint to 2.13.3 (#68904) 2022-03-30 09:18:55 -07:00
Marc Mueller 53110f8cb7
Update pylint to 2.13.2 (#68704) 2022-03-27 16:08:24 +02:00
Marc Mueller 53245c6523
Update pylint to 2.13.0 (#68656) 2022-03-25 15:14:48 -07:00
Marc Mueller 1ce32ad3c0
Update mypy to 0.942 (#68652) 2022-03-25 08:50:10 +01:00
Franck Nijhof df3a163a66
Update freezegun to 1.2.1 (#68512) 2022-03-23 08:10:21 +01:00
Franck Nijhof ce30b32add
Update pytest to 7.1.1 (#68366) 2022-03-19 12:14:05 +01:00
Franck Nijhof 7174e7897c
Update mypy to 0.941 (#68305) 2022-03-18 16:22:32 +01:00
Franck Nijhof 86abb85efa
Update pytest-xdist to 2.5.0 (#68135) 2022-03-14 20:17:36 +01:00
Franck Nijhof 6b36ada4ec
Update pytest to 7.1.0 (#68108) 2022-03-14 11:35:19 +01:00
Franck Nijhof 276d795bf7
Remove unused types for emoji (#68091) 2022-03-14 00:10:40 +02:00
Franck Nijhof cc046e64f5
Update freezegun to 1.2.0 (#68090) 2022-03-13 19:36:36 +01:00
Marc Mueller 41df798375
Bump mypy to 0.940 (#68007) 2022-03-11 15:57:38 -08:00
Franck Nijhof e4c62a2037
Update coverage to 6.3.2 (#67395) 2022-03-01 08:58:19 +01:00
Tobias Sauerwein 71540a924b
Update requirements_test.txt (#66481) 2022-02-14 09:51:22 +02:00
Franck Nijhof d12a392767
Update plugwise 0.16.2 (#65933) 2022-02-08 11:13:05 +01:00
Tobias Sauerwein 8b38fa58aa
Bump pytest to 7.0.0 (#65981) 2022-02-08 10:03:27 +01:00
Franck Nijhof f3c5f9c972
Drop responses from test requirements (#65793) 2022-02-05 15:17:12 +01:00
Franck Nijhof d92ed3ff2b
Update coverage to 6.3.1 (#65790) 2022-02-05 14:38:14 +01:00
Franck Nijhof c202b24cae
Update pylint to 2.12.2 (#64896) 2022-01-25 10:20:20 +01:00
Franck Nijhof 5afbcf4185
Update pipdeptree to 2.2.1 (#64746) 2022-01-23 10:30:00 +01:00
Franck Nijhof f1e591f2d7
Update pytest-timeout to 2.1.0 (#64533) 2022-01-20 12:02:32 +01:00
Franck Nijhof ddb6f36890
Update pre-commit to 2.17.0 (#64378) 2022-01-18 21:54:17 +01:00
Marc Mueller e74d7b22f3
Bump mypy to 0.931 (#63673) 2022-01-08 14:10:16 +01:00
Tobias Sauerwein 2c904c0974
Bump mypy to 0.930 (#62642)
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2021-12-27 17:55:17 +01:00
Franck Nijhof cc8e02c733
Upgrade pre-commit to 2.16.0 (#60680) 2021-12-01 08:43:37 +01:00
Franck Nijhof 1f2a5ae98d
Upgrade coverage to 6.2.0 (#60530) 2021-11-29 11:52:13 +01:00
Marc Mueller 25f8d4a189
Upgrade pylint to 2.12.1 (#60375) 2021-11-26 00:13:27 +01:00
uvjustin bb731fad5d
Bump httpx from 0.19.0 to 0.21.0 (#59723)
* Bump httpx from 0.19.0 to 0.21.0

* Bump respx from 0.17.0 to 0.19.0
2021-11-18 18:11:46 +08:00
J. Nick Koston 96f7b0d910
Use atomicwrites for mission critical core files (#59606) 2021-11-15 11:19:31 +01:00
Franck Nijhof f3a308458f
Upgrade pytest-timeout to 2.0.1 (#59646) 2021-11-13 18:09:10 +01:00
Franck Nijhof beb0650a81
Upgrade coverage to 6.1.2 (#59530) 2021-11-12 02:31:00 +01:00
Franck Nijhof dcafee5c97
Upgrade pipdeptree to 2.2.0 (#59438) 2021-11-09 22:05:01 +01:00
Erik Montnemery 30f7bc0f18
Use freezegun in DST tests (#58939) 2021-11-02 18:11:39 +01:00
Franck Nijhof 617144994b
Upgrade coverage to 6.1.1 (#58855) 2021-10-31 20:44:01 -07:00
Franck Nijhof 1b71eafeba
Upgrade coverage to 6.0.2 (#57518) 2021-10-12 10:47:34 +02:00
Franck Nijhof 19b0212ff0
Upgrade coverage to 6.0.1 (#57235) 2021-10-07 10:46:43 +02:00
Erik Montnemery f6682ba99d
Block tests from opening sockets (#55516) 2021-10-05 14:46:09 -10:00
Franck Nijhof bdf6c79062
Upgrade coverage to 6.0 (#57041) 2021-10-04 14:17:43 +02:00
Franck Nijhof bfefe82605
Upgrade pre-commit to 2.15.0 (#56677) 2021-09-26 14:47:47 +02:00
Franck Nijhof 23e1c663d4
Upgrade pytest-xdist to 2.4.0 (#56606) 2021-09-25 12:07:29 +02:00
Franck Nijhof 57aaf55678
Upgrade pipdeptree to 2.1.0 (#56637) 2021-09-25 11:48:31 +02:00
Franck Nijhof d7e121f3e8
Upgrade pytest to 6.2.5 (#56603) 2021-09-24 10:11:36 +02:00
Franck Nijhof 71ab24f350
Upgrade pre-commit to 2.14.1 (#56569) 2021-09-23 16:11:29 +02:00
Pascal Vizeli 7698c179ac
Upgrade cryptography to 3.4.8 (#56481)
* Upgrade cryptography to 3.4.8

* Fix file
2021-09-21 11:06:52 +02:00
Marc Mueller 48bada5a18
Update pylint to 2.11.1 (#56364) 2021-09-18 13:52:59 +02:00
Ruslan Sayfutdinov 7195b8222b
Bump PyJWT to 2.1.0 (#55911) 2021-09-07 20:59:02 -07:00
Diogo Gomes fb28665cfa
Add "cron patterns" to define utility_meter cycles (#46795)
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-08-25 14:52:39 -05:00
Marc Mueller a3ff05f367
Update pylint to 2.10.2 (#55089) 2021-08-23 12:24:19 -05:00
Marc Mueller 69e413ac1e
Update pylint to 2.10.1 (#54963)
* Update pylint to 2.10.0

* useless-suppression

* Consider-using-tuple

* Apply suggestions from code review

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>

* Use dict.items()

* Add pylint disable

* Use pylint 2.10.1

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-08-21 10:41:23 +02:00
Ville Skyttä bb4a36c877
Upgrade mypy to 0.910 and types-* (#54574)
Co-authored-by: Daniel Hjelseth Høyer <mail@dahoiv.net>
2021-08-16 22:47:37 +02:00
Franck Nijhof 0b3f322475
Upgrade pre-commit to 2.14.0 (#54719) 2021-08-16 22:02:32 +02:00
Franck Nijhof 3d31bd5c68
Upgrade codecov to 2.1.12 (#54370) 2021-08-09 20:56:04 -07:00
Marc Mueller 46c3495ae0
Update pylint to 2.9.5 (#53496) 2021-07-26 16:17:15 +02:00
Daniel Hjelseth Høyer fbad453c89
Pylint 2.9.3 (#52972)
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2021-07-14 21:44:57 -07:00
Franck Nijhof 13bf5dbee4
Upgrade mypy to 0.902 (#51907) 2021-06-16 14:35:32 +02:00
Franck Nijhof 16d5d7e508
Upgrade codecov to 2.1.11 (#51885) 2021-06-15 15:04:48 +02:00
Franck Nijhof e4202aa4de
Upgrade pytest-cov to 2.12.1 (#51886) 2021-06-15 15:04:07 +02:00
Franck Nijhof fb682665e2
Upgrade pylint to 2.8.3 (#51308) 2021-06-01 08:48:53 +02:00
Franck Nijhof 9a208e3761
Upgrade pre-commit to 2.13.0 (#51068) 2021-05-25 15:51:42 +02:00
Franck Nijhof de77e0be8c
Upgrade pylint to 2.8.2 (#50669) 2021-05-15 19:41:17 +02:00
Franck Nijhof 041838bdd7
Upgrade requests-mock to 1.9.2 (#50377) 2021-05-09 16:30:03 -05:00
Franck Nijhof 13ba4d7572
Upgrade pytest to 6.2.4 (#50077) 2021-05-04 20:43:41 +02:00
Franck Nijhof 98b305285f
Upgrade pytest-xdist to 2.2.1 (#49904) 2021-04-30 14:35:30 +02:00
J. Nick Koston dcb5b9f8b5
Bump httpx to 0.18.0 and respx to 0.17.0 (#49805) 2021-04-28 11:22:09 +02:00
Marc Mueller f1d48ddfe3
Update pylint to 2.8.0 (#49637) 2021-04-24 14:39:24 -10:00
Franck Nijhof 7f29d028a3
Upgrade pre-commit to 2.12.1 (#49331) 2021-04-16 21:19:02 -10:00
Franck Nijhof 06381f5619
Upgrade pre-commit to 2.12.0 (#48731) 2021-04-07 10:40:53 +02:00
Franck Nijhof 1876e84d71
Upgrade pytest to 6.2.3 (#48672) 2021-04-04 13:06:49 +02:00
Marc Mueller ee55657ae9
Update pylint to 2.7.4 (#48500) 2021-03-30 12:23:59 +02:00
Marc Mueller 2956eb0902
Update pylint to 2.7.3 (#48488)
* Update pylint to 2.7.3

* Add class-const-naming-style

* Remove unused-import message

* Additional cleanup
2021-03-29 18:02:56 -10:00
Franck Nijhof b7ad5ff032
Upgrade pre-commit to 2.11.1 (#48219) 2021-03-22 13:11:06 +01:00
Franck Nijhof d37fb7d88d
Upgrade pre-commit to 2.11.0 (#47618) 2021-03-08 13:03:39 +01:00
Franck Nijhof 93d4e46bb6
Upgrade coverage to 5.5 (#47227) 2021-03-01 15:37:03 +01:00
Marc Mueller 16dcbf1467
Update pylint (#47205) 2021-02-28 22:09:01 -10:00
Franck Nijhof 23c2bd4e69
Upgrade mypy to 0.812 (#46898) 2021-02-22 12:44:40 +01:00
Franck Nijhof 48808978c4
Upgrade pre-commit to 2.10.1 (#46211) 2021-02-08 15:05:11 +01:00
Joakim Sørensen 06e6005fbb
Add warning to custom integrations without version (#45919)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-02-04 09:59:41 +01:00
Joakim Sørensen 374817fbaa
Bump awesomeversion from 21.1.6 to 21.2.0 (#45821) 2021-02-01 16:54:25 +01:00
Franck Nijhof c74ddf4720
Upgrade pre-commit to 2.10.0 (#45777) 2021-01-31 08:00:49 -10:00
Ville Skyttä d13b58a4e6
Upgrade mypy to 0.800 (#45485)
* Upgrade mypy to 0.800

https://mypy-lang.blogspot.com/2021/01/mypy-0800-released.html

* Fix issues flagged by mypy 0.800

* Add overloads + small changes

* Apply grammar

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-01-30 22:33:53 +01:00
Joakim Sørensen 0964393002
Bump awesomeversion from 21.1.3 to 21.1.6 (#45738) 2021-01-30 14:09:16 +01:00
Franck Nijhof 7816eccee7
Upgrade coverage to 5.4 (#45570) 2021-01-26 19:20:42 +01:00
Franck Nijhof 21d23a6f94
Upgrade pytest to 6.2.2 (#45572) 2021-01-26 19:20:28 +01:00
Joakim Sørensen edfb8c3423
Add version to hassfest for custom integrations (#45523)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-01-25 13:31:14 +01:00
Franck Nijhof 65cf2fcb6f
Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
Franck Nijhof 70d2c37131
Upgrade pre-commit to 2.9.3 (#44740) 2021-01-01 18:10:28 +01:00
Jonas Lundberg a5279cc279
Upgrade respx to 0.16.2 (#43892)
* Bump respx to 0.16.2

* Align sensor tests to use new respx mock api
2020-12-04 04:27:25 +01:00
Franck Nijhof deb45f7c90
Upgrade pre-commit to 2.9.2 (#43655) 2020-11-26 22:34:17 +01:00
Franck Nijhof 9d650245ee
Upgrade pytest to 6.1.2 (#40662)
* Upgrade pytest to 6.1.0

* Upgrade pytest to 6.1.2
2020-11-07 12:39:37 +01:00
Franck Nijhof 4e1b7583e0
Upgrade pre-commit to 2.8.2 (#42757) 2020-11-02 23:46:04 +01:00
J. Nick Koston ad6ce5fa83
Convert rest sensors to async using httpx (#41973) 2020-10-16 19:21:13 -05:00
Ville Skyttä f28c3273c2
Upgrade mypy to 0.790 (#41595) 2020-10-12 19:17:30 -05:00
Franck Nijhof 0c7d8ce704
Upgrade codecov to 2.1.10 (#41562) 2020-10-09 18:27:26 +02:00
Franck Nijhof 25bfaf6c0d
Upgrade tqdm to 4.49.0 (#40573) 2020-09-25 14:29:27 +02:00
Franck Nijhof b116e58620
Upgrade pytest-xdist to 2.1.0 (#40057) 2020-09-15 16:28:51 +02:00
Franck Nijhof 5d0fa1417e
Upgrade pytest to 6.0.2 (#39959)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-09-15 10:09:56 +02:00
Franck Nijhof bda66d1929
Upgrade coverage to 5.3.0 (#40056) 2020-09-14 08:34:18 +02:00
Franck Nijhof 6751a38b8e
Upgrade responses to 0.12.0 (#39986) 2020-09-12 19:40:10 +02:00
Franck Nijhof 18e9e262e4
Upgrade pytest-timeout to 1.4.2 (#39983) 2020-09-12 19:33:44 +02:00
Franck Nijhof e746965b1c
Upgrade mypy to 0.782 (#39967) 2020-09-12 11:31:22 +02:00
Franck Nijhof 3dda76115c
Upgrade pytest-sugar to 0.9.4 (#39966) 2020-09-12 11:30:41 +02:00
Franck Nijhof ee6945d63d
Upgrade pytest-cov to 2.10.1 (#39964) 2020-09-12 09:39:08 +02:00
Franck Nijhof 824f551969
Upgrade codecov to 2.1.9 (#39960) 2020-09-12 09:08:04 +02:00
Tom bb9ea7ce6e
Add tests for Plugwise integration (#36371) 2020-09-08 08:37:44 +02:00
Martin Hjelmare 8eed7110a1
Add hassfest requirements validation (#39329) 2020-09-06 23:41:41 +02:00
Ville Skyttä 1bf2c4d976
Upgrade pylint to 2.6.0 (#39363) 2020-08-29 07:59:24 +02:00
Franck Nijhof 46ab5ab38e
Upgrade pre-commit to 2.7.1 (#39206) 2020-08-24 12:47:55 +02:00
Franck Nijhof f757e258a7
Upgrade pre-commit to 2.7.0 (#39180) 2020-08-23 12:40:51 -04:00
Franck Nijhof 84df0efb5e
Upgrade coverage to 5.2.1 (#38158) 2020-07-24 17:03:10 +02:00
Paulus Schoutsen 0bcc8624b7
Reference constraint files from requirement files (#37751)
* Reference constraint files from requirement files

* Update azure-pipelines-wheels.yml

Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
2020-07-11 06:20:14 -07:00
Franck Nijhof 0f5d300db4
Upgrade coverage to 5.2 (#37598) 2020-07-07 09:32:19 -05:00
Franck Nijhof 573134fcb4
Add GitHub Actions for CI (#37419)
* Add GitHub Actions for CI

* Add base/full to step descriptions
2020-07-03 19:18:01 +02:00
Franck Nijhof 4679e670f1
Upgrade pre-commit to 2.6.0 (#37339) 2020-07-02 13:47:09 -05:00
Franck Nijhof 785786ecd1
Upgrade pytest-cov to 2.10.0 (#36720) 2020-06-13 02:37:59 +02:00
Franck Nijhof 8d405c4585
Upgrade pre-commit to 2.5.1 (#36623) 2020-06-10 15:22:42 +02:00
Franck Nijhof 854bdfb6f2
Upgrade pre-commit to 2.5.0 (#36596) 2020-06-09 18:44:22 +02:00
Ville Skyttä fc395de511
Upgrade mypy to 0.780 (#36416)
http://mypy-lang.blogspot.com/2020/06/mypy-0780-released.html
2020-06-03 22:51:44 +02:00
Franck Nijhof 1771fbbd34
Upgrade pytest to 5.4.3 (#36385) 2020-06-02 21:26:31 +02:00
Martin Hjelmare 8970fd8a56
Bump codecov to 2.1.0 (#35808)
* Bump codecov to 2.1.0

* Try to invalidate cache
2020-05-19 13:08:36 -04:00
Franck Nijhof 2d43698958
Upgrade pre-commit to 2.4.0 (#35520) 2020-05-11 20:00:08 -04:00
Franck Nijhof 0ac95fbed3
Upgrade pytest to 5.4.2 (#35381) 2020-05-08 19:34:19 +02:00
Franck Nijhof 9efca0079c
Upgrades requests-mock to 1.8.0 (#35093) 2020-05-02 17:09:44 -07:00
Franck Nijhof a643d6cd3e
Upgrade pytest to 5.4.1 (#34739) 2020-04-26 22:54:39 -07:00
Franck Nijhof de3f0c788c
Upgrade pytest-timeout to v1.3.4 (#34609) 2020-04-26 13:56:59 -07:00
Franck Nijhof 22fdccba02
Upgrade pytest-sugar to 0.9.3 (#34726) 2020-04-26 13:54:19 -07:00
Franck Nijhof e9c5f3e74a
Upgrade codecov to 2.0.22 (#34607) 2020-04-23 14:05:05 -07:00
Franck Nijhof 5a9ee9bd6c
Upgrade mock-open to 1.4.0 (#34606) 2020-04-23 13:00:28 -07:00
Franck Nijhof 0869d209d7
Upgrade pre-commit to 2.3.0 (#34604) 2020-04-23 12:33:15 -07:00
Franck Nijhof 00d5e5cfb2
Upgrade pre-commit to 2.2.0 (#32737) 2020-03-12 14:44:14 -07:00
Ville Skyttä 221d5205e4
Upgrade mypy to 0.770, tighten config a bit (#32715)
* Upgrade mypy to 0.770, related cleanups

https://mypy-lang.blogspot.com/2020/03/mypy-0770-released.html

* Clean up config and make it a notch stricter, address findings
2020-03-12 11:52:20 +01:00
Franck Nijhof c98f50115d
Upgrade pre-commit to 2.1.1 (#32159) 2020-02-25 02:16:23 +01:00
Franck Nijhof 4ed7a7f2e0
Upgrade pre-commit to 2.1.0 (#31962) 2020-02-18 13:25:26 -08:00
Franck Nijhof 611127a6bc
Bump pytest to 5.3.5 (#31327) 2020-01-31 00:04:59 +01:00
Franck Nijhof 981d963554
Upgrade pre-commit to 2.0.1 (#31308) 2020-01-30 13:08:37 +01:00
Franck Nijhof c2f1d6aa19
Upgrade pre-commit to 2.0.0 (#31267) 2020-01-29 12:04:25 +01:00
Ville Skyttä 9795449d22
Make pylint fail on informational messages too (#31136)
Refs https://github.com/PyCQA/pylint/issues/3250
2020-01-24 23:27:15 +02:00
Franck Nijhof e8e7e66e2b Bump pytest to 5.3.4 (#31045) 2020-01-21 15:44:39 -05:00
Franck Nijhof 24d5e54eed Bump pre-commit to 1.21.0 (#30406) 2020-01-02 14:16:58 -06:00
Ville Skyttä ecdc1adf90 Upgrade mypy to 0.761 (#30104)
https://mypy-lang.blogspot.com/2019/12/mypy-0760-released.html
https://github.com/python/mypy/releases/tag/v0.761
2019-12-20 22:35:02 +01:00
Franck Nijhof d1e59b20c8 Bump pytest to 5.3.2 (#29990) 2019-12-16 10:59:32 +01:00
Franck Nijhof e2a9c652ab
Bump pytest to 5.3.1 (#29535) 2019-12-06 09:08:06 +01:00
Ville Skyttä 9927f6c17d Upgrade mypy to 0.750 (#29294)
https://mypy-lang.blogspot.com/2019/11/mypy-0.html
2019-12-01 17:58:26 +01:00
Franck Nijhof 6db4e975e3 Bump pytest to 5.3.0 (#28883) 2019-11-19 20:51:25 -05:00
Ville Skyttä 2aee366a1f Upgrade pylint, tweak config (#28798)
* Upgrade pylint to 2.4.4 and astroid to 2.3.3

https://pylint.readthedocs.io/en/latest/whatsnew/changelog.html#what-s-new-in-pylint-2-4-4
https://github.com/PyCQA/astroid/blob/astroid-2.3.3/ChangeLog

* Disable pylint score and persistence

We don't use scoring, and it can be supposedly incorrect (so worse
than ignorable) when using more than one parallel job.
2019-11-16 09:59:26 +01:00
cgtobi 806b96ef73 Bump pytest to 5.2.3 (#28785) 2019-11-15 05:14:46 +01:00
Ville Skyttä 804b6bbc0e Reduce test requirements duplication, sync flake8 and related (#28538)
* Generate pre-commit test dependencies instead of duplicating

* Upgrade/sync to flake8 3.7.9, flake8-docstrings 1.5.0, and pydocstyle 4.0.1

https://flake8.readthedocs.io/en/latest/release-notes/3.7.9.html
https://gitlab.com/pycqa/flake8-docstrings/blob/1.4.0/HISTORY.rst
https://gitlab.com/pycqa/flake8-docstrings/blob/1.5.0/HISTORY.rst
http://www.pydocstyle.org/en/4.0.1/release_notes.html

* Include requirements_test.txt from *_all.txt instead of copying
2019-11-04 21:21:52 -08:00
Ville Skyttä a8dff2f2d0 pre-commit: ship default and full configs (#28463)
For now, the only difference between the two is mypy.
2019-11-02 12:21:09 -07:00
cgtobi 1dfb67f0c5 Bump pytest to 5.2.2 (#28230) 2019-10-29 15:16:05 -04:00
Franck Nijhof 4dc6d36224 Bump pre-commit to 1.20.0 (#28313) 2019-10-29 09:37:18 +01:00
Franck Nijhof 04ab20846a Bump black to 19.10b0 (#28310) 2019-10-28 23:32:34 -07:00
Robert Van Gorkom 15bedd8f27 Use latest withings_api module (#27817)
* Using latest winthings_api module.
Drastically reduced complexity of tests.

* Removing import source.

* Fixing test requirements.

* Using requests_mock instead of responses module.

* Updating file formatting.

* Removing unused method.

* Adding support for new OAuth2 config flow.

* Addressing PR feedback.
Removing unecessary base_url from config, this is a potential breaking change.

* Addressing PR feedback.
2019-10-24 09:41:04 -07:00
Ville Skyttä 381d423fec Upgrade mypy to 0.740 (#27913)
* Upgrade mypy to 0.740

http://mypy-lang.blogspot.com/2019/10/mypy-0740-released.html

* Type hint additions

* Type fixes

* Remove no longer needed type ignores and casts

* Disable untyped definition checks in bunch of files
2019-10-19 11:35:57 -07:00
Ville Skyttä 1ec01b5e6c Upgrade pylint to 2.4.3 and astroid to 2.3.2 (#27912)
https://pylint.readthedocs.io/en/latest/whatsnew/changelog.html#what-s-new-in-pylint-2-4-3
2019-10-19 12:03:52 +02:00
Ville Skyttä 5e79408708 Upgrade to flake8-docstrings 1.5.0, pytest 5.2.1, and pytest-cov 2.8.1 (#27588)
https://gitlab.com/pycqa/flake8-docstrings/blob/1.5.0/HISTORY.rst
https://docs.pytest.org/en/latest/changelog.html#pytest-5-2-1-2019-10-06
https://pytest-cov.readthedocs.io/en/latest/changelog.html#id1
2019-10-13 22:27:42 +02:00
Ville Skyttä 761d7f21e9 Upgrade pylint (#27279)
* Upgrade pylint to 2.4.2 and astroid to 2.3.1

https://pylint.readthedocs.io/en/latest/whatsnew/2.4.html
https://pylint.readthedocs.io/en/latest/whatsnew/changelog.html#what-s-new-in-pylint-2-4-1
https://pylint.readthedocs.io/en/latest/whatsnew/changelog.html#what-s-new-in-pylint-2-4-2

* unnecessary-comprehension fixes

* invalid-name fixes

* self-assigning-variable fixes

* Re-enable not-an-iterable

* used-before-assignment fix

* invalid-overridden-method fixes

* undefined-variable __class__ workarounds

https://github.com/PyCQA/pylint/issues/3090

* no-member false positive disabling

* Remove some no longer needed disables

* using-constant-test fix

* Disable import-outside-toplevel for now

* Disable some apparent no-value-for-parameter false positives

* invalid-overridden-method false positive disables

https://github.com/PyCQA/pylint/issues/3150

* Fix unintentional Entity.force_update override in AfterShipSensor
2019-10-07 08:17:39 -07:00
Ville Skyttä 52bbb6242c Upgrade pytest to 5.2.0 (#27058)
https://docs.pytest.org/en/latest/changelog.html#pytest-5-2-0-2019-09-28
2019-09-29 23:00:39 +02:00
Ville Skyttä fde128d66c
Upgrade mypy to 0.730, address raised issues (#26959)
https://mypy-lang.blogspot.com/2019/09/mypy-730-released.html
2019-09-27 22:57:59 +03:00
Paulus Schoutsen 51a090cfdc Fix CI 2019-09-24 20:47:24 -07:00
Franck Nijhof 4f7a4b93da Bump request_mock to 1.7.0 (#26799) 2019-09-22 11:02:23 +03:00
Franck Nijhof 6bdfab1124 Bump pytest to 5.1.3 (#26794) 2019-09-22 10:56:43 +03:00
Franck Nijhof 44cde5fb73 Bumps pre-commit to 1.18.3 (#26717) 2019-09-19 20:50:45 +02:00
Franck Nijhof 468deef326 Bumps pytest to 5.1.2 (#26718) 2019-09-19 20:02:21 +02:00
Ville Skyttä e033e46161
Remove coveralls test dependency (#26110)
Outdated and unused.
2019-08-21 19:49:46 +03:00
Ville Skyttä 48e9e53f66
Upgrade pytest to 5.1.1 (#26112)
https://docs.pytest.org/en/latest/changelog.html#pytest-5-1-0-2019-08-15
https://docs.pytest.org/en/latest/changelog.html#pytest-5-1-1-2019-08-20
2019-08-21 19:49:25 +03:00
Ville Skyttä 8f044cf52f
Upgrade pydocstyle to 4.0.1 (#26111)
https://github.com/PyCQA/pydocstyle/blob/4.0.1/docs/release_notes.rst#401---august-14th-2019
2019-08-21 19:48:46 +03:00