Skip to content

Commit f52d1fe

Browse files
Merge pull request #2523 from VWS-Python/per-file-ignores
Use new format for pylint-per-file-ignores
2 parents 85bec16 + e0b9f43 commit f52d1fe

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

pyproject.toml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ optional-dependencies.dev = [
5555
"pyenchant==3.3.0rc1",
5656
"pygments==2.19.1",
5757
"pylint==3.3.3",
58-
"pylint-per-file-ignores==1.3.2",
58+
"pylint-per-file-ignores==1.4.0",
5959
"pyproject-fmt==2.5.0",
6060
"pyright==1.1.392.post0",
6161
"pyroma==4.2",
@@ -244,16 +244,14 @@ disable = [
244244
'useless-type-doc',
245245
]
246246

247-
# This format is described in the following issue:
248-
# https://github.com/christopherpickering/pylint-per-file-ignores/issues/160
249-
#
250247
# We ignore invalid names because:
251248
# - We want to use generated module names, which may not be valid, but are never seen.
252-
# - We want to use global variables in documentation, which may not be uppercase
253-
per-file-ignores = """
254-
docs/:invalid-name
255-
doccmd_README_rst.*.py:invalid-name
256-
"""
249+
# - We want to use global variables in documentation, which may not be uppercase.
250+
# - conf.py is a Sphinx configuration file which requires lowercase global variable names.
251+
per-file-ignores = [
252+
"docs/:invalid-name",
253+
"doccmd_README_rst.*.py:invalid-name",
254+
]
257255

258256
[tool.pylint.'FORMAT']
259257

0 commit comments

Comments
 (0)