Commit graph

127 commits

Author SHA1 Message Date
Ville Skyttä
2aee366a1f Upgrade pylint, tweak config ()
* 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 () 2019-11-15 05:14:46 +01:00
Ville Skyttä
804b6bbc0e Reduce test requirements duplication, sync flake8 and related ()
* 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 ()
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 () 2019-10-29 15:16:05 -04:00
Franck Nijhof
4dc6d36224 Bump pre-commit to 1.20.0 () 2019-10-29 09:37:18 +01:00
Franck Nijhof
04ab20846a Bump black to 19.10b0 () 2019-10-28 23:32:34 -07:00
Robert Van Gorkom
15bedd8f27 Use latest withings_api module ()
* 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 ()
* 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 ()
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 ()
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 ()
* 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 ()
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 ()
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 () 2019-09-22 11:02:23 +03:00
Franck Nijhof
6bdfab1124 Bump pytest to 5.1.3 () 2019-09-22 10:56:43 +03:00
Franck Nijhof
44cde5fb73 Bumps pre-commit to 1.18.3 () 2019-09-19 20:50:45 +02:00
Franck Nijhof
468deef326 Bumps pytest to 5.1.2 () 2019-09-19 20:02:21 +02:00
Ville Skyttä
e033e46161
Remove coveralls test dependency ()
Outdated and unused.
2019-08-21 19:49:46 +03:00
Ville Skyttä
48e9e53f66
Upgrade pytest to 5.1.1 ()
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 ()
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
Ville Skyttä
fed789c770 Upgrade pre-commit to 1.18.2 ()
https://github.com/pre-commit/pre-commit/blob/v1.18.2/CHANGELOG.md
2019-08-17 16:47:55 -06:00
Ville Skyttä
49a5dda7a8 Upgrade pydocstyle to 4.0.0, do not run in tox ()
* Upgrade pydocstyle to 4.0.0 and flake8-docstrings to 1.3.1

http://www.pydocstyle.org/en/4.0.0/release_notes.html#july-6th-2019

* Address pydocstyle D413's

* tox: do not run pydocstyle

Does not seem to add any value over flake8-docstrings (and would have
needed a D202 exclusion).
2019-08-04 17:05:43 +02:00
Paulus Schoutsen
da05dfe708 Add Black 2019-07-31 12:23:23 -07:00
Ville Skyttä
56841da2d3 Upgrade mypy to 0.720, turn on unreachability warnings ()
* Upgrade mypy to 0.720

* Turn on mypy unreachability warnings, address raised issues
2019-07-16 15:11:38 -07:00
Ville Skyttä
59f6fd7630 Upgrade flake8 to 3.7.8 ()
http://flake8.pycqa.org/en/latest/release-notes/3.7.8.html
2019-07-13 09:32:08 +02:00
Ville Skyttä
b834671555 Test dependency updates ()
* Upgrade pytest to 5.0.1

https://docs.pytest.org/en/latest/changelog.html#pytest-5-0-1-2019-07-04

* Upgrade asynctest to 0.13.0

* Upgrade requests_mock to 1.6.0
2019-07-07 12:30:31 +02:00
Ville Skyttä
e8a5306c23 Upgrade mypy to 0.711, drop no longer needed workarounds ()
https://mypy-lang.blogspot.com/2019/06/mypy-0711-released.html
2019-07-07 03:58:33 +02:00
Daniel Høyer Iversen
3d2f843c1d Upgrade pytest to 5.0.0 ()
* Upgrade pytest to 5.0.0

* exception message for pytest 5
2019-07-01 10:47:42 -04:00
Ville Skyttä
71346760d0 Upgrade pytest to 4.6.3 ()
* Upgrade pytest to 4.6.3

https://docs.pytest.org/en/latest/changelog.html#pytest-4-6-2-2019-06-03
https://docs.pytest.org/en/latest/changelog.html#pytest-4-6-3-2019-06-11

* Make litejet switch test work with pytest 4.6.3

Essentially reverts the corresponing change that was made for pytest
4.2 compatibility.
2019-06-26 20:01:03 -07:00
Ville Skyttä
a6eef22fbc
Upgrade mypy to 0.710 ()
* Upgrade mypy to 0.710

* Address mypy 0.710 errors
2019-06-22 10:19:36 +03:00
Ville Skyttä
bf9c2c74fa Upgrade pytest and -cov ()
* Upgrade pytest to 4.5.0

https://docs.pytest.org/en/latest/changelog.html#pytest-4-5-0-2019-05-11
https://docs.pytest.org/en/latest/changelog.html#pytest-4-4-2-2019-05-08

* Upgrade pytest to 4.6.0

https://docs.pytest.org/en/latest/changelog.html#pytest-4-6-0-2019-05-31

* Upgrade pytest-cov to 2.7.1

https://github.com/pytest-dev/pytest-cov/blob/master/CHANGELOG.rst#271-2019-05-03
https://github.com/pytest-dev/pytest-cov/blob/master/CHANGELOG.rst#270-2019-05-03

* Upgrade pytest to 4.6.1

https://docs.pytest.org/en/latest/changelog.html#pytest-4-6-1-2019-06-02
2019-06-05 11:09:23 +02:00
Ville Skyttä
f434e24252
Upgrade mypy ()
* Upgrade mypy to 0.701

* Enable strict equality checks

* Strict equality error fixes

* StateMachine.is_state docstring fix
2019-05-02 21:18:20 +03:00
Ville Skyttä
b79d71065c
Upgrade pytest to 4.4.1 () 2019-05-02 21:17:36 +03:00
Ville Skyttä
7058249c01 Uprade asynctest to 0.12.3 () 2019-04-10 11:17:02 +02:00
Ville Skyttä
fa8a4de019 Upgrade pytest to 4.4.0 () 2019-04-10 11:16:52 +02:00
Jason Hu
7646dc00e0
Add codecov () 2019-04-01 20:31:05 -07:00
Ville Skyttä
b4f8d157d6 Upgrade pytest to 4.3.1 () 2019-03-16 08:13:45 +01:00
Ville Skyttä
2812483193
Upgrade pylint to 2.3.1 () 2019-03-08 09:13:35 +02:00
Daniel Høyer Iversen
519315f9c8 pylint 2.3.0 ()
* pylint 2.3.0

* remove const

*  disable=syntax-error
2019-02-27 16:10:40 -05:00
Ville Skyttä
beb86426e4 Upgrade flake8 to 3.7.7 () 2019-02-26 10:47:57 -08:00
Ville Skyttä
619ea3ff98
Upgrade mypy to 0.670 () 2019-02-25 07:54:54 +02:00
Ville Skyttä
dd5fc0a1da
Upgrade pytest to 4.3.0 () 2019-02-25 07:36:57 +02:00
Ville Skyttä
816364bfd9 Upgrade pytest to 4.2.1 ()
* Upgrade pytest to 4.2.0

* Upgrade pytest to 4.2.1

* Make litejet switch test work with pytest 4.2
2019-02-17 09:55:33 +01:00
Ville Skyttä
876e2a0a11
Upgrade mypy to 0.660 () 2019-02-09 08:32:14 +02:00
Daniel Høyer Iversen
ef6b0b8e0b Update flake8 to 3.7.5 ()
* Upgrade flake8

* Upgrade flake8

* Add noqa for hound
2019-02-05 11:12:09 +01:00
Ville Skyttä
eb610e6093
Upgrade pytest to 4.1.1 () 2019-01-14 10:05:24 +02:00
Ville Skyttä
162e2b8385 Upgrade pytest to 4.1.0 () 2019-01-13 08:56:26 +01:00
Ville Skyttä
574669bd20 Upgrade pytest-cov to 2.6.1 () 2019-01-11 16:24:59 -08:00