Skip to content

Commit dcbeff2

Browse files
committed
Try disabling per-file-ignore & ignore warning
1 parent b1d3723 commit dcbeff2

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

pyproject.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ include = ["plugwise*"]
5454
# 20241208: W0201 / attribute-defined-outside-init
5555
# 20241208: R1702 / too-many-nested-blocks # too many nested blocks in test_init 8/5
5656
# 20241208: R6102 / consider-using-tuple
57-
# 20241208: Recommended disabling => "implicit-str-concat", # ISC001 - 2 occurances!
57+
# 20241208: Recommended disabling => "implicit-str-concat", # ISC001 - 2 occurrences!
5858
##
5959

6060
[tool.pylint.MAIN]
@@ -75,7 +75,7 @@ init-hook = """\
7575
load-plugins = [
7676
"pylint.extensions.code_style",
7777
"pylint.extensions.typing",
78-
"pylint_per_file_ignores",
78+
# "pylint_per_file_ignores",
7979
]
8080
persistent = false
8181
extension-pkg-allow-list = [
@@ -366,12 +366,12 @@ enable = [
366366
#"useless-suppression", # temporarily every now and then to clean them up
367367
"use-symbolic-message-instead",
368368
]
369-
per-file-ignores = [
370-
# redefined-outer-name: Tests reference fixtures in the test function
371-
# use-implicit-booleaness-not-comparison: Tests need to validate that a list
372-
# or a dict is returned
373-
"/tests/:redefined-outer-name,use-implicit-booleaness-not-comparison",
374-
]
369+
#per-file-ignores = [
370+
# # redefined-outer-name: Tests reference fixtures in the test function
371+
# # use-implicit-booleaness-not-comparison: Tests need to validate that a list
372+
# # or a dict is returned
373+
# "/tests/:redefined-outer-name,use-implicit-booleaness-not-comparison",
374+
#]
375375

376376
[tool.pylint.REPORTS]
377377
score = false

tests/bandit.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ tests:
1212
- B317
1313
- B318
1414
- B319
15-
- B320
1615
- B601
1716
- B602
1817
- B604

tests/test_init.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ async def connect(
340340
assert smile._timeout == 30
341341

342342
# Connect to the smile
343-
version = None
343+
version = None # pylint: disable=redefined-outer-name
344344
try:
345345
version = await smile.connect()
346346
assert version is not None
@@ -426,7 +426,7 @@ async def connect_legacy(
426426
assert smile._timeout == 30
427427

428428
# Connect to the smile
429-
version = None
429+
version = None # pylint: disable=redefined-outer-name
430430
try:
431431
version = await smile.connect()
432432
assert version is not None

0 commit comments

Comments
 (0)