Skip to content

Use the LinterSettings's tab size when expanding indent#9506

Merged
charliermarsh merged 2 commits intoastral-sh:mainfrom
hoel-bagard:use_tab_size_setting
Jan 14, 2024
Merged

Use the LinterSettings's tab size when expanding indent#9506
charliermarsh merged 2 commits intoastral-sh:mainfrom
hoel-bagard:use_tab_size_setting

Conversation

@hoel-bagard
Copy link
Copy Markdown
Contributor

Summary

In the logical_lines's expand_indent , respect the LinterSettings::tab_size setting instead of hardcoding the size of tabs to 8.

Also see this conversation

Test Plan

Tested by running cargo test

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 13, 2024

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@hoel-bagard hoel-bagard changed the title Use the LinterSettings's tab size. Use the LinterSettings's tab size when expanding indent Jan 13, 2024
@zanieb zanieb added the linter Related to the linter label Jan 13, 2024
Comment thread crates/ruff_linter/src/checkers/logical_lines.rs Outdated
@charliermarsh charliermarsh merged commit e8d7a6d into astral-sh:main Jan 14, 2024
@charliermarsh
Copy link
Copy Markdown
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

linter Related to the linter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants