Franck Nijhof
b9b1cee403
Enable pylint import-outside-toplevel ( #33631 )
2020-04-04 17:07:36 +02: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
Paulus Schoutsen
d28d1ff657
Add JSON benchmark ( #32690 )
...
* Add JSON benchmark
* Fix logbook benchmarks
* Move logbook import back
2020-03-11 11:50:16 -07:00
Paulus Schoutsen
8aea538662
Allow teaching logbook about events ( #32444 )
...
* Allow teaching logbook about events
* Use async_add_executor_job
* Fix tests
2020-03-05 11:55:50 -08:00
Paulus Schoutsen
07fa844c43
Speed up validate_entity_id ( #32137 )
...
* Speed up validate_entity_id
* Add some more invalid entity IDs
* Adjust regular expression
* Extend and sort test cases
* Update regular expression, more cases, faster
* Adjust tests, allow start with number, disallow double underscore
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2020-02-24 08:35:02 -08:00
Bas Nijholt
67c56c860d
Sort imports according to PEP8 for 'homeassistant' folder ( #29789 )
...
Components are already done
2019-12-09 16:42:10 +01:00
Franck Nijhof
2f0eb07624
Migrate legacy typehints in core to PEP-526 ( #26403 )
...
* Migrate legacy typehints in core to PEP-526
* Fix one type
2019-09-03 20:36:04 -07:00
Franck Nijhof
decf13b948
Use literal string interpolation in core (f-strings) ( #26166 )
2019-08-23 09:53:33 -07:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Ville Skyttä
e8e84fb764
Type check homeassistant.scripts ( #25464 )
...
* Run mypy on homeassistant.scripts, disabling bunch of checks for now
* Declare async_initialize in AuthProvider
* Add some type hints
* Remove unreachable code
* Help mypy out
* Script docstring fixes
2019-07-24 13:18:40 -07:00
Paulus Schoutsen
f995ab9d54
Don't pass in loop ( #23984 )
...
* Don't pass in loop
* Revert some changes
* Lint + Axis revert
* reinstate loop
* Fix a test
* Set loop
* Update camera.py
* Lint
2019-05-22 21:09:59 -07:00
Anders Melchiorsen
0c8a31b8ec
Memory optimization for logbook ( #21549 )
2019-03-01 23:23:45 -08:00
Paulus Schoutsen
fbc1c41673
Logbook context ( #16937 )
...
* Convert logbook to use attr
* Add context to events
* Enhance logbook
* Lint
* Fix logbook entry
* Don't use intermediary classes for logbook entries
2018-10-01 16:12:25 +02:00
Ville Skyttä
3246b49a45
Upgrade pylint to 2.1.0 ( #15811 )
...
* Upgrade pylint to 2.1.0
* Remove no longer needed pylint disables
2018-08-04 15:22:22 +02:00
Julius Mittenzwei
16cb7388ee
Removing asyncio.coroutine syntax from HASS core ( #12509 )
...
* changed asyncio.coroutine syntax to new async def/await
* removed py34 from tox environment
* reverted some changes within entity.py
* -
* reverted changes within bootstrap.py
* reverted changes within discovery.py
* switched decorators
* Reverted change within aiohttp_client.py
* reverted change within logging.py
* switched decorators
* Await lock properly
* removed asyncio.coroutine from test
2018-02-25 03:38:46 -08:00
Anders Melchiorsen
f9ee29a5cd
Logbook speedup ( #12566 )
...
* Optimize logbook filtering
* Avoid State construction during Events filtering
* Move tuple creation out of loop
* Add benchmark
2018-02-21 10:35:55 -08:00
Fabian Affolter
47e31dc9ee
Fixes for PEP257 ( #11810 )
...
* Fixes for PEP257
* More updates
2018-01-20 22:35:38 -08:00
Paulus Schoutsen
8f06b35dfc
Optimize event matcher ( #9798 )
...
* Optimize event matcher
* Tweak order of checks
* Add a benchmark for time_changed helper
* Add state change benchmark
* fix lint
2017-10-10 22:26:03 +02:00
Paulus Schoutsen
9f5bfe28d1
Add initial benchmark framework ( #7827 )
...
* Add initial benchmark framework
* Use timer from timeit
2017-05-30 21:34:40 -07:00