1
mirror of https://github.com/home-assistant/core synced 2024-09-25 00:41:32 +02:00
Commit Graph

34 Commits

Author SHA1 Message Date
Fabian Heredia Montiel
08226a4864 Type Hints - __main__ (#2574)
* Add __main__ type hints

* Fix most errors of __main__

* Add ignore for script.run()

* Add type annotations for from_config_dict and from_config_file

* Fix errors

* Fix requirement error

* Add mypy type check to tests

* Enable travis typing check

* Messed up the tox deps

* Laxer type checker
2016-07-20 22:38:52 -07:00
Paulus Schoutsen
d65c1c2b0d Travis: only run coveralls on success 2016-02-18 23:23:05 -08:00
Paulus Schoutsen
61b0d02a88 Fix coveralls 2016-02-17 23:26:55 -08:00
Sean Dague
97c0f5bb5a convert testing infrastructure to tox
This converts the testing infrastructure to tox for both locally
testing and travis. This is nearly equivalent to the previous testing
with the only exception that linting fails with the first tool to fail
and won't process all of them.

Slightly tricky thing is that tox resets *all* of the environment for
it's subprocess runs by default. A couple of the dependencies we have
will not install in non UTF8 locales: temper-python & XBee.
2016-02-14 13:04:42 -05:00
Paulus Schoutsen
7dc1499386 Make CI erros more prominent 2016-01-02 14:43:03 -08:00
Paulus Schoutsen
473d6b1d05 Fix console coloring for scripts 2015-12-27 19:19:29 -08:00
Paulus Schoutsen
7f17a50b4a Swap lint/requirements validation between Python versions 2015-12-27 18:04:38 -08:00
Paulus Schoutsen
680385df93 Hide some build log spam 2015-12-27 16:35:14 -08:00
Paulus Schoutsen
089bbfc5cc Travis: Less verbose requirements_all.txt check 2015-12-26 17:19:53 -08:00
Paulus Schoutsen
cc80ad00ff Fix travis caching 2015-12-18 09:07:34 -08:00
Paulus Schoutsen
2e75f0b314 Remove quiet pip installs on travis 2015-12-18 00:35:53 -08:00
Paulus Schoutsen
dd60cc020e Only validate requirements_all.txt on Python 3.5 2015-12-18 00:19:14 -08:00
Paulus Schoutsen
b5fc7f5e71 Verify requirements_all in Travis 2015-12-18 00:01:52 -08:00
Paulus Schoutsen
04aa4ff3a8 Add Travis fast_finish 2015-12-17 09:15:56 -08:00
Paulus Schoutsen
fc8c26005c Change Travis caching to be less invasive 2015-12-10 18:16:49 -08:00
Paulus Schoutsen
b53993e8c0 Update Travis to test on Python 3.5 too 2015-11-30 00:09:58 -08:00
Paulus Schoutsen
c611be96ad Another try, caching is enabled before activating virtualenv 2015-10-03 11:36:39 -07:00
Paulus Schoutsen
d46720ee2c Tweak caching on CI 2015-10-03 11:31:28 -07:00
Paulus Schoutsen
6de64d7695 Cache pip in Travis 2015-10-02 16:49:10 -07:00
Paulus Schoutsen
737d7c9d22 Add travis install section back 2015-09-17 08:54:56 -07:00
Paulus Schoutsen
8c77418b6a First pass for scripts to rule them all 2015-09-17 00:35:26 -07:00
Paulus Schoutsen
c971e50a68 Remove external from scripts and package info 2015-09-09 09:08:06 -07:00
Ryan Kraus
0b6358e759 Implemented comments from Paulus.
Revised main to use frontend and demo strings rather than importing
their domains.
Removed submodule validation.
Moved local library mounting to the bootstrap module and out of core.
Added requirements_all.txt for all dependencies.
Made core dependencies looser.
Small updates to setup.py.
2015-08-29 22:19:52 -04:00
Paulus Schoutsen
c3402dca4e Upgrade travis.yml to run on new infra 2015-07-10 22:00:13 -07:00
Paulus Schoutsen
7e3de4d6f7 Don't include device specific code in coverage 2015-03-07 07:49:19 -08:00
Paulus Schoutsen
db48b2ba34 Exclude external libraries from code coverage 2015-01-15 21:35:11 -08:00
Paulus Schoutsen
d4cad0b267 Rename ha_test folder to tests 2015-01-08 20:05:12 -08:00
Paulus Schoutsen
12c734fa48 Update travis.yml to point at new test 2014-12-01 07:59:08 -08:00
Paulus Schoutsen
bc4b81d525 Reorganized testing 2014-11-23 13:00:06 -08:00
Paulus Schoutsen
5d107ed74b Switched style checking to flake8 instead of pep8 2014-11-16 22:18:52 -08:00
Paulus Schoutsen
0c7b6e26aa Add test coverage tracking via coveralls 2014-11-14 22:23:48 -08:00
Paulus Schoutsen
2051871c81 Add pylint to travis 2014-11-11 22:18:35 -08:00
Paulus Schoutsen
8ae9faf128 Added PEP8 checking to Travis 2014-11-11 09:14:00 -08:00
Paulus Schoutsen
15f67fd6a7 Added a travis config file 2014-11-09 16:56:15 -08:00