Skip to content

Commit 72b5c78

Browse files
committed
Move codespell config to pre-commit
1 parent 966ba34 commit 72b5c78

File tree

3 files changed

+7
-14
lines changed

3 files changed

+7
-14
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,16 @@ repos:
2929
- id: pyupgrade
3030
name: "Check Py upgrade"
3131
args: [--py311-plus]
32-
# Moved codespell configuration to setup.cfg as per 'all-files' issues not reading args
3332
- repo: https://github.com/codespell-project/codespell
3433
rev: v2.4.1
3534
hooks:
3635
- id: codespell
37-
name: "Check spelling"
36+
args:
37+
- --ignore-words-list=aiport,astroid,checkin,currenty,hass,iif,incomfort,lookin,nam,NotIn,leeg # HA-core copied, self-added: leeg (Dutch for empty)
38+
- --skip="./.*,*.csv,*.json,*.ambr"
39+
- --quiet-level=2
3840
exclude_types: [csv, json]
41+
exclude: ^tests/fixtures/|homeassistant/generated/|tests/components/.*/snapshots/
3942
- repo: https://github.com/PyCQA/bandit
4043
rev: 1.8.3
4144
hooks:

pyproject.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ classifiers = [
1313
"Development Status :: 5 - Production/Stable",
1414
"Intended Audience :: Developers",
1515
"Operating System :: OS Independent",
16-
"Programming Language :: Python :: 3.12",
1716
"Programming Language :: Python :: 3.13",
1817
"Topic :: Home Automation",
1918
]
@@ -24,7 +23,7 @@ maintainers = [
2423
{ name = "bouwew"},
2524
{ name = "CoMPaTech" }
2625
]
27-
requires-python = ">=3.12.0"
26+
requires-python = ">=3.13"
2827
dependencies = [
2928
"aiohttp",
3029
"defusedxml",
@@ -52,7 +51,7 @@ include = ["plugwise*"]
5251
# 20241208: W0201 / attribute-defined-outside-init
5352
# 20241208: R1702 / too-many-nested-blocks # too many nested blocks in test_init 8/5
5453
# 20241208: R6102 / consider-using-tuple
55-
# 20241208: Recommended disabling => "implicit-str-concat", # ISC001 - 2 occurances!
54+
# 20241208: Recommended disabling => "implicit-str-concat", # ISC001 - 2 occurrences!
5655
##
5756

5857
[tool.pylint.MAIN]
@@ -466,7 +465,6 @@ lint.select = [
466465
"S317", # suspicious-xml-sax-usage
467466
"S318", # suspicious-xml-mini-dom-usage
468467
"S319", # suspicious-xml-pull-dom-usage
469-
"S320", # suspicious-xmle-tree-usage
470468
"S601", # paramiko-call
471469
"S602", # subprocess-popen-with-shell-equals-true
472470
"S604", # call-with-shell-equals-true

setup.cfg

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)