Skip to content

Commit 260df34

Browse files
committed
pylint precommit fix; fixed another flake8 warning
1 parent b52ea58 commit 260df34

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ repos:
4747
rev: v1.37.1
4848
hooks:
4949
- id: yamllint
50-
- repo: local
50+
- repo: https://github.com/pycqa/pylint
51+
rev: v3.3.4
5152
hooks:
5253
- id: pylint
53-
name: pylint
54-
args: [-j 0]
55-
entry: venv/bin/pylint
56-
language: system
54+
args: [-j, "0", --disable=import-error]
5755
files: ^(custom_components|tests)/.+\.py$
56+
additional_dependencies:
57+
- pylint_strict_informational
5858
- repo: https://github.com/pre-commit/mirrors-mypy
5959
rev: v1.17.1
6060
hooks:

tests/test_unit_eval.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1773,7 +1773,7 @@ async def run_one_test_exception(test_data):
17731773
ast.parse(source)
17741774
exc = ast.get_exception()
17751775
if exc is not None:
1776-
if type(expect) == set:
1776+
if isinstance(expect, set):
17771777
assert exc in expect
17781778
else:
17791779
assert exc == expect

0 commit comments

Comments
 (0)