From a6cc56fd98773ec177369d56c75a0438a5ab5f18 Mon Sep 17 00:00:00 2001 From: Luca Mancusi <81118183+lmanc@users.noreply.github.com> Date: Wed, 25 Oct 2023 00:05:09 +0200 Subject: [PATCH] Fix a wrong setting in configuration.md (#8186) ## Summary The previous configuration for `ruff` contained an unrecognized field `magic-trailing-comma` set to "respect". As of version 0.1.2 of `ruff`, this field was not recognized and resulted in a TOML parse error when running the `ruff format .` command. This change removes the `magic-trailing-comma` field and adds the recognized `skip-magic-trailing-comma` field set to `false`. ## Test Plan Tested locally with `ruff` 0.1.2. --- docs/configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/configuration.md b/docs/configuration.md index 8676d079259fa..f29ce0688a9a5 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -67,7 +67,7 @@ quote-style = "double" indent-style = "space" # Like Black, respect magic trailing commas. -magic-trailing-comma = "respect" +skip-magic-trailing-comma = false # Like Black, automatically detect the appropriate line ending. line-ending = "auto"