Skip to content

Commit

Permalink
Warn about D203 formatter incompatibility (astral-sh#12238)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaReiser committed Jul 8, 2024
1 parent 64855c5 commit bf3d903
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/ruff/src/commands/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,8 @@ pub(super) fn warn_incompatible_formatter_settings(resolver: &Resolver) {
// pass
// ```
Rule::MissingTrailingComma,
// The formatter always removes blank lines before the docstring.
Rule::OneBlankLineBeforeClass,
] {
if setting.linter.rules.enabled(rule) {
incompatible_rules.insert(rule);
Expand Down

0 comments on commit bf3d903

Please sign in to comment.