-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Description
I do have a few per-file ignores in my project[1]. Do you think it is possible to add support for multi-line tables?
This works:
[tool.ruff]
line-length = 89
per-file-ignores = {"tests/federation/printer/*" = ["E501"], "tests/test_printer/test_basic.py" = ["E501"], "tests/pyright/test_federation.py" = ["E501"], "tests/test_printer/test_schema_directives.py" = ["E501"]}
This does not:
[tool.ruff]
line-length = 89
per-file-ignores = {
"tests/federation/printer/*" = ["E501"],
"tests/test_printer/test_basic.py" = ["E501"],
"tests/pyright/test_federation.py" = ["E501"],
"tests/test_printer/test_schema_directives.py" = ["E501"]
}
Error:
error expected a table key, found a newline at line 196 column 21
I get the same error in VS Code:
My understanding is that multi-line tables are supported by TOML: toml-lang/toml#904
but it's a relatively new feature :)
Anyway, I'm fine with having the ignores on one line, it's not a big deal, I opened the issue just in case it is easy to implement and for others that might stumble on the same problem :)
schneiderfelipe
Metadata
Metadata
Assignees
Labels
No labels
