Closed johnthagen closed 2 years ago
As far as I can tell, using arrays (lists) like in your example works fine. However, using a table (dict) for per-file-ignores
doesn't work in my case.
So instead of
[tool.flake8.per-file-ignores]
"tests/*" = ["D", "ANN"]
"noxfile.py" = ["D", "ANN"]
I have to write
[tool.flake8]
per-file-ignores = ["tests/*: D, ANN", "noxfile.py: D, ANN"]
As far as I can tell, using arrays (lists) like in your example works fine
Huh, interesting. Perhaps the README should be updated if this is an intentional feature?
I tested multiple configuration settings and TOML lists do in fact work.
For a tag such as
extend-ignore
, a more natural TOML API for the user would be that instead of:Would be:
Behind the scenes,
pyproject-flake8
could add commas as needed as it calls out toflake8
, but I think it would be cleanest if this was hidden from the user.This is also more closely to what an actual TOML implementation would look like for
flake8
.