Skip to content

Commit

Permalink
Remove example from tab-indentation (#11462)
Browse files Browse the repository at this point in the history
## Summary

I think the example is more confusing than helpful, since there's no
visual difference between the tab and space here (even if it rendered
properly).

Closes
#11460 (comment).
  • Loading branch information
charliermarsh committed May 17, 2024
1 parent 83152ff commit 24899ef
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
12 changes: 0 additions & 12 deletions crates/ruff_linter/src/rules/pycodestyle/rules/tab_indentation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,6 @@ use ruff_text_size::{TextRange, TextSize};
/// According to [PEP 8], spaces are preferred over tabs (unless used to remain
/// consistent with code that is already indented with tabs).
///
/// ## Example
/// ```python
/// if True:
/// a = 1
/// ```
///
/// Use instead:
/// ```python
/// if True:
/// a = 1
/// ```
///
/// ## Formatter compatibility
/// We recommend against using this rule alongside the [formatter]. The
/// formatter enforces consistent indentation, making the rule redundant.
Expand Down
1 change: 0 additions & 1 deletion scripts/check_docs_formatted.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
"redundant-backslash",
"shebang-leading-whitespace",
"surrounding-whitespace",
"tab-indentation",
"too-few-spaces-before-inline-comment",
"too-many-blank-lines",
"too-many-boolean-expressions",
Expand Down

0 comments on commit 24899ef

Please sign in to comment.