Skip to content

Commit eb98459

Browse files
committed
Fix codespell processing
1 parent 558d6bb commit eb98459

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 4 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
3738
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,Leeg
42-
- --skip="./.*,*.csv,*.json,./userdata"
43-
- --quiet-level=2
4441
exclude_types: [csv, json]
4542
- repo: https://github.com/PyCQA/flake8
4643
rev: 6.0.0

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)
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 = alot,ba,datas,dof,dur,ether,farenheit,haa,hass,hist,iam,iff,iif,incomfort,ines,ist,leeg,lightsensor,mut,nd,pres,pullrequests,referer,rime,ser,serie,te,technik,ue,uint,visability,wan,wanna,withing,
12+
skip = ./.*,*.csv,*.json
13+
quiet-level = 2

0 commit comments

Comments
 (0)