Enable E241 (Multiple spaces after comma)

This commit is contained in:
Adam Turner 2023-08-15 18:16:27 +01:00
parent f1ee0b2951
commit e3f0342932
4 changed files with 13 additions and 9 deletions

View File

@ -310,6 +310,7 @@ select = [
"E227", # Missing whitespace around bitwise or shift operator "E227", # Missing whitespace around bitwise or shift operator
"E228", # Missing whitespace around modulo operator "E228", # Missing whitespace around modulo operator
"E231", # Missing whitespace after '{token}' "E231", # Missing whitespace after '{token}'
"E241", # Multiple spaces after comma
] ]
[tool.ruff.per-file-ignores] [tool.ruff.per-file-ignores]
@ -318,6 +319,9 @@ select = [
# allow print() in the tutorial # allow print() in the tutorial
"doc/development/tutorials/examples/recipe.py" = ["T201"] "doc/development/tutorials/examples/recipe.py" = ["T201"]
# from .flake8
"sphinx/*" = ["E241"]
# whitelist ``print`` for stdout messages # whitelist ``print`` for stdout messages
"sphinx/cmd/build.py" = ["T201"] "sphinx/cmd/build.py" = ["T201"]
"sphinx/cmd/make_mode.py" = ["T201"] "sphinx/cmd/make_mode.py" = ["T201"]