Skip to content

Commit

Permalink
Fix a wrong setting in configuration.md (#8186)
Browse files Browse the repository at this point in the history
## 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.
  • Loading branch information
lmanc authored Oct 24, 2023
1 parent 0236e07 commit a6cc56f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit a6cc56f

Please sign in to comment.