christopherpickering / pylint-per-file-ignores

A pylint plugin to ignore error codes per file.
10 stars 5 forks source link

Allow rules to be an array #153

Closed epenet closed 5 months ago

epenet commented 5 months ago

Enables:

[tool.pylint-per-file-ignores]
"tests/" = [
    "code-1", # ignoring code-1 because ...
    "code-2", # ignoring code-2 because ...
    "code-3", # ignoring code-3 because ...
]

Previously, had to do

[tool.pylint-per-file-ignores]
# ignoring code-1 because ...
# ignoring code-2 because ...
# ignoring code-3 because ...
"tests/" = "code-1,code-2,code-3"

See https://github.com/home-assistant/core/blob/fc915dc1bf341b27f90925df5749278789218822/pyproject.toml#L404-L408