@@ -3,18 +3,6 @@ default_language_version:
33 python : python3.9
44repos :
55 # Run manually in CI skipping the branch checks
6- - repo : https://github.com/PyCQA/pylint
7- rev : v2.12.2
8- hooks :
9- - id : pylint
10- name : pylint
11- entry : scripts/run-in-env.sh pylint
12- language : system
13- types : [python]
14- args : [
15- " -rn" , # Only display messages
16- " -sn" , # Don't display the score
17- ]
186 - repo : https://github.com/PyCQA/isort
197 rev : 5.10.1
208 hooks :
@@ -28,10 +16,10 @@ repos:
2816 args :
2917 - --branch=main
3018 - repo : https://github.com/asottile/pyupgrade
31- rev : v2.31.0
19+ rev : v2.31.1
3220 hooks :
3321 - id : pyupgrade
34- args : [--py37 -plus]
22+ args : [--py39 -plus]
3523 - repo : https://github.com/psf/black
3624 rev : 22.3.0
3725 hooks :
@@ -45,17 +33,22 @@ repos:
4533 hooks :
4634 - id : codespell
4735 args :
48- - --ignore-words-list=hass,alot,datas,dof,dur,farenheit,hist,iff,ines,ist,lightsensor,mut,nd,pres,referer,ser,serie,te,technik,ue,uint,visability,wan,wanna,withing,iam,incomfort
36+ - --ignore-words-list=hass,alot,datas,dof,dur,ether, farenheit,hist,iff,iif, ines,ist,lightsensor,mut,nd,pres,referer,rime, ser,serie,te,technik,ue,uint,visability,wan,wanna,withing,iam,incomfort,ba,haa,pullrequests
4937 - --skip="./.*,*.csv,*.json"
5038 - --quiet-level=2
5139 exclude_types : [csv, json]
5240 - repo : https://gitlab.com/pycqa/flake8
53- rev : 3.9.2
41+ rev : 4.0.1
5442 hooks :
5543 - id : flake8
5644 additional_dependencies :
57- - flake8-docstrings==1.5.0
58- - pydocstyle==5.1.1
45+ - pycodestyle==2.8.0
46+ - pyflakes==2.4.0
47+ - flake8-docstrings==1.6.0
48+ - pydocstyle==6.1.1
49+ - flake8-comprehensions==3.8.0
50+ - flake8-noqa==1.2.1
51+ - mccabe==0.6.1
5952 files : ^(plugwise|tests)/.+\.py$
6053 - repo : https://github.com/PyCQA/bandit
6154 rev : 1.7.4
@@ -70,11 +63,23 @@ repos:
7063 rev : v1.26.3
7164 hooks :
7265 - id : yamllint
73- - repo : https://github.com/prettier/ prettier
74- rev : 2.5 .1
66+ - repo : https://github.com/pre-commit/mirrors- prettier
67+ rev : v2.6 .1
7568 hooks :
7669 - id : prettier
70+ - repo : https://github.com/cdce8p/python-typing-update
71+ rev : v0.3.5
72+ hooks :
73+ # Run `python-typing-update` hook manually from time to time
74+ # to update python typing syntax.
75+ # Will require manual work, before submitting changes!
76+ - id : python-typing-update
7777 stages : [manual]
78+ args :
79+ - --py39-plus
80+ - --force
81+ - --keep-updates
82+ files : ^(plugwise|tests)/.+\.py$
7883 - repo : local
7984 hooks :
8085 # Run mypy through our wrapper script in order to get the possible
@@ -93,4 +98,10 @@ repos:
9398 language : script
9499 types : [python]
95100 require_serial : true
101+ files : ^plugwise/$
102+ - id : pylint
103+ name : pylint
104+ entry : scripts/run-in-env.sh pylint -j 0
105+ language : script
106+ types : [python]
96107 files : ^plugwise/.+\.py$
0 commit comments