Commit graph

103 commits

Author SHA1 Message Date
Franck Nijhof
3b5fd4bd06
Enable Ruff TRY004 (#86811) 2023-01-30 14:06:52 +01:00
Franck Nijhof
c56832bb2c
Enable Ruff SIM300 (#86793) 2023-01-30 11:03:23 +01:00
Ville Skyttä
50c2992f36
Drop py39 from black target-version (#86814) 2023-01-27 22:39:52 +02:00
Franck Nijhof
8f74bff354
Enable Ruff PLC0414 (#86799) 2023-01-27 16:32:04 +01:00
Franck Nijhof
8c993116e1
Enable Ruff SIM401 (#86790)
* Enable Ruff SIM401

* Adjust found cases
2023-01-27 13:08:44 +01:00
Franck Nijhof
bfbf9b9751
Adjusts imports in tests to match our relative import rules (#86788) 2023-01-27 12:51:58 +01:00
Franck Nijhof
3ff3834cae
Re-enable Ruff UP024 (#86784) 2023-01-27 12:03:27 +01:00
Franck Nijhof
a79885ceaf
Enable Ruff SIM117 (#86783) 2023-01-27 11:52:49 +01:00
Franck Nijhof
57cf11f067
Enable Ruff PT015 (#86775) 2023-01-27 11:10:29 +01:00
Franck Nijhof
e4a78420b8
Enable Ruff PT013 (#86757)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-01-27 09:09:46 +01:00
Franck Nijhof
e738924780
Enable Ruff SIM105 (#86759)
* Enable Ruff SIM105

* Adjust existing cases
2023-01-26 21:06:22 -05:00
Franck Nijhof
62dcbe5258
Enable Ruff PT001 (#86730) 2023-01-26 18:05:05 +01:00
Franck Nijhof
eb5d63237c
Update ruff to v0.0.235 (#86719) 2023-01-26 17:17:13 +01:00
Franck Nijhof
7d672b4a4d
Bump version to 2023.3.0dev0 (#86632) 2023-01-25 20:50:44 +01:00
Malte Franken
a2fb6fbaa8
Bump httpx to 0.23.3 (#86614)
fixes undefined
2023-01-25 11:40:46 +01:00
Franck Nijhof
73c4ac53d2
Enable T20 (flake8-print) to ban use of print statements (#86525)
* Enable T20 (flake8-print) to ban use of print statements

* Make compatible with flake8 config
2023-01-24 14:24:21 +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
d7dda6bee5
Update python version used for pylint [Py310] (#86414)
* Update python version used for pylint linting [Py310]

* Import Callable from collections.abc [Py310]

* Use builtin anext [Py310]
2023-01-23 07:56:15 +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
epenet
91c502ae55
Bump bcrypt to 4.0.1 (#86338) 2023-01-21 11:16:28 -05:00
Franck Nijhof
b85d6e6ede
Update orjson to 3.8.5 (#86043) 2023-01-16 22:20:12 +01:00
J. Nick Koston
8b893b7062
Bump cryptography to 39.0.0 (#85846)
* Bump cryptography to 39.0.0

changelog: https://github.com/pyca/cryptography/compare/38.0.3...39.0.0

The change that is significant is https://github.com/pyca/cryptography/pull/7601 which
should help with esphome noise encryption performance

* constraints

* fix botocore not loading
2023-01-13 19:58:01 -05:00
Franck Nijhof
83f6e168e5
Update orjson to 3.8.4 (#85195) 2023-01-05 12:34:23 +01:00
J. Nick Koston
a9640d9c94
Bump home-assistant-bluetooth to 1.9.2 (#85123) 2023-01-04 18:29:26 +01:00
J. Nick Koston
b470c3484b
Bump httpx to 0.23.2 (#85023)
changelogs:
https://github.com/encode/httpcore/compare/0.16.2...0.16.3
https://github.com/encode/httpx/compare/0.23.1...0.23.2
2023-01-02 20:45:52 -05:00
J. Nick Koston
3dd342baf3
Bump home-assistant-bluetooth to 1.9.1 (#85005)
fixes #83722
2023-01-02 16:33:01 -05:00
Franck Nijhof
9b3d727e8e
Update orjson to 3.8.3 (#84878) 2022-12-31 00:58:02 +01:00
Franck Nijhof
f84533838a
Update attrs to 22.2.0 (#84772) 2022-12-29 15:09:39 +01:00
Franck Nijhof
ba24cb6e72
Bump version to 2023.2.0dev0 (#84707) 2022-12-28 18:46:04 +01:00
Franck Nijhof
f17a42dc27
Upgrade ciso8601 to 2.3.0 (#84465) 2022-12-22 15:01:59 -05:00
Aaron Godfrey
fe2e357ae9
Upgrade attrs to 22.1.0 (#84205) 2022-12-19 12:40:30 +01:00
Paulus Schoutsen
1c0543bcd5
Drop aiohttp to 3.8.1 (#83795) 2022-12-11 21:19:02 -05:00
J. Nick Koston
9008006ac8
Restore remote discovered devices between remote scanner restarts (#83699) 2022-12-11 09:02:55 -10: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
Franck Nijhof
4bef6ac191
Bump version to 2023.1.0dev0 (#83025) 2022-11-30 21:12:57 -05: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
Franck Nijhof
35e81cf982
Update aiohttp to 3.8.3 (#78860) 2022-11-28 20:42:10 +01:00
uvjustin
9390359fe3
Bump httpx to 0.23.1 (#82725) 2022-11-26 10:04:22 -10:00
J. Nick Koston
4b89d087bb
Bump home-assistant-bluetooth to 1.8.1 (#82222)
changelog: https://github.com/home-assistant-libs/home-assistant-bluetooth/compare/v1.8.0...v1.8.1
2022-11-16 23:08:17 +02:00
J. Nick Koston
682187541f
Move BluetoothServiceInfoBleak to home_assistant_bluetooth (#82064) 2022-11-15 14:00:52 -06:00
Franck Nijhof
7556f2b84e
Update cryptography to 38.0.3 (#81455) 2022-11-03 11:18:25 +01:00
Franck Nijhof
cee7b788d4
Bump version to 2022.12.0dev0 (#81044) 2022-10-26 23:44:38 +02:00
Franck Nijhof
d65e639f00
Update orjson to 3.8.1 (#81000) 2022-10-26 12:40:15 +02:00
Marc Mueller
8d4c32e106
Update pip constraint to 22.4 (#80383) 2022-10-16 12:01:11 +02:00
J. Nick Koston
d12cbab6c4
Bump bleak to 0.19.0 (#80349) 2022-10-15 13:57:23 -04:00
Marc Mueller
647a4ac131
Update typing-extensions constraint to >=4.4.0 (#79860) 2022-10-08 18:32:46 +03:00
Franck Nijhof
99f4ce9e5a
Bump version to 2022.11.0dev0 (#79224) 2022-09-28 21:51:06 +02:00
Paulus Schoutsen
f41b69e19e
Bump cryptography to 38 (#79067) 2022-09-25 17:39:42 -04:00