Skip to content

Commit b990ee4

Browse files
authored
Merge pull request #277 from plugwise/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents cbbc2ce + 05096b8 commit b990ee4

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,11 @@ repos:
3333
- --safe
3434
- --quiet
3535
files: ^((plugwise|tests)/.+)?[^/]+\.py$
36+
# Moved codespell configuration to setup.cfg as per 'all-files' issues not reading args
3637
- repo: https://github.com/codespell-project/codespell
37-
rev: v2.2.2
38+
rev: v2.2.4
3839
hooks:
3940
- id: codespell
40-
args:
41-
- --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
42-
- --skip="./.*,*.csv,*.json"
43-
- --quiet-level=2
4441
exclude_types: [csv, json]
4542
- repo: https://github.com/PyCQA/flake8
4643
rev: 6.0.0
@@ -57,7 +54,7 @@ repos:
5754
files: ^(plugwise|tests)/.+\.py$
5855
args: ["--verbose", "--append-config=setup.cfg"]
5956
- repo: https://github.com/PyCQA/bandit
60-
rev: 1.7.4
57+
rev: 1.7.5
6158
hooks:
6259
- id: bandit
6360
args:
@@ -70,7 +67,7 @@ repos:
7067
hooks:
7168
- id: yamllint
7269
- repo: https://github.com/pre-commit/mirrors-prettier
73-
rev: v3.0.0-alpha.4
70+
rev: v3.0.0-alpha.6
7471
hooks:
7572
- id: prettier
7673
- repo: https://github.com/cdce8p/python-typing-update

setup.cfg

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Setuptools v62.3 doesn't support editable installs with just 'pyproject.toml' (PEP 660).
2+
# Added Codespell since pre-commit doesn't process args correctly (and python3.11 and toml prevent using pyproject.toml) check #277 (/#278) for details
23
# Keep this file until it does!
34

45
[metadata]
56
url = https://github.com/plugwise/python-plugwise
7+
8+
[codespell]
9+
# Most of the ignores from HA-Core upstream
10+
# Self-added: leeg
11+
ignore-words-list = additionals,alle,alot,ba,bre,bund,currenty,datas,dof,dur,ether,farenheit,falsy,fo,haa,hass,hist,iam,iff,iif,incomfort,ines,ist,leeg,lightsensor,mut,nam,nd,pres,pullrequests,referer,resset,rime,ser,serie,sur,te,technik,ue,uint,unsecure,visability,wan,wanna,withing,zar
12+
skip = ./.*,*.csv,*.json
13+
quiet-level = 2

tests/bandit.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ tests:
1313
- B318
1414
- B319
1515
- B320
16-
- B325
1716
- B601
1817
- B602
1918
- B604

0 commit comments

Comments
 (0)