Open jamesbraza opened 4 months ago
I ran into this too, just now - thanks for the workaround, James :smiley:. Toml multi-line strings mean DIY \n
s are not required, by the way:
[tool.pylint.messages_control]
# Modal Image imports are a false positive
# not-callable is a false positive, SEE: https://github.com/pylint-dev/pylint/issues/8138
per-file-ignores = """
scripts/modal/:import-error,
scripts/db.py:not-callable
"""
Is there chance to get fix for that?
I'm not working this project, but if a PR comes up I will be happy to merge it.
This
pyproject.toml
will blow up withpylint==3.2.6
andpylint-per-file-ignores==1.3.2
:It blows up with an error on splitting in https://github.com/christopherpickering/pylint-per-file-ignores/blob/v1.3.2/pylint_per_file_ignores/__init__.py#L252-L257:
A workaround for not supporting TOML lists is string-ifying the
per-file-ignores
with DIY\n
: