Skip to content

Commit a198d35

Browse files
Merge pull request #2495 from VWS-Python/per-file-ignores
Use new format for pylint-per-file-ignores
2 parents 69dfdd5 + be6f6af commit a198d35

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

pyproject.toml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ optional-dependencies.dev = [
7070
"pydocstyle==6.3",
7171
"pyenchant==3.3.0rc1",
7272
"pylint==3.3.3",
73-
"pylint-per-file-ignores==1.3.2",
73+
"pylint-per-file-ignores==1.4.0",
7474
"pyproject-fmt==2.5.0",
7575
"pyright==1.1.392.post0",
7676
"pyroma==4.2",
@@ -228,16 +228,13 @@ load-plugins = [
228228
'pylint.extensions.typing',
229229
]
230230

231-
# This format is described in the following issue:
232-
# https://github.com/christopherpickering/pylint-per-file-ignores/issues/160
233-
#
234231
# We ignore invalid names because:
235232
# - We want to use generated module names, which may not be valid, but are never seen.
236233
# - We want to use global variables in documentation, which may not be uppercase
237-
per-file-ignores = """
238-
docs/:invalid-name
239-
doccmd_README_rst.*.py:invalid-name
240-
"""
234+
per-file-ignores = [
235+
"docs/:invalid-name",
236+
"doccmd_README_rst.*.py:invalid-name",
237+
]
241238

242239
[tool.pylint.'MESSAGES CONTROL']
243240

0 commit comments

Comments
 (0)