Franck Nijhof
f38011560f
Add pyupgrade (in pre-commit and CI) ( #33688 )
...
* Add pyupgrade (in pre-commit and CI)
* Fix leftover results of pyupgrade
* Ensure we run for Python 3.7 on pyupgrade
2020-04-05 12:49:57 +02:00
Franck Nijhof
24840b54ac
Add yamllint (in pre-commit and CI) ( #33676 )
...
* Add yamllint (in pre-commit and CI)
* Fix linting for all YAML files
* Bump and add it to requirements
* Fix gen_requirements for pre-commit, remove 'v' from version
2020-04-05 10:33:45 +02:00
Robert Svensson
e0704d73cc
deCONZ - Services normalize bridge id ( #31378 )
...
* Services should also make sure to normalize bridge id since users do not know to manage themselves
2020-02-01 18:11:05 +01:00
Ville Skyttä
dc5ca461a9
Run mypy through a pyenv/virtualenv enabler wrapper script ( #30922 )
2020-02-01 07:12:46 -08:00
Ville Skyttä
74cde3de6e
Upgrade pydocstyle to 5.0.2 ( #30648 )
...
https://github.com/PyCQA/pydocstyle/blob/5.0.2/docs/release_notes.rst
2020-01-10 19:56:07 +01:00
Bas Nijholt
c58c10ab7c
Add isort to CI and pre-commit ( #29739 )
...
* add isort to CI and pre-commit
* disable wrong-import-order in pylintrc
* ✏️ Tweak
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2019-12-12 15:58:47 +01:00
Ville Skyttä
a12cf7211d
Upgrade pydocstyle to 5.0.1 ( #29830 )
...
* Upgrade pydocstyle to 5.0.1
http://www.pydocstyle.org/en/5.0.1/release_notes.html
* Pydocstyle and other docstring fixes
2019-12-10 23:25:06 +01:00
Ville Skyttä
d4c80f160c
Add bandit, use to catch known vulnerable XML parsing ( #28341 )
...
* Add bandit to pre-commit and CI, use to catch known vulnerable XML parsing
* Use defusedxml instead of direct xml.etree to parse XML
* Move config to tests/bandit.yaml
2019-11-18 09:10:15 +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