Skip to content

W191 isn't triggered inside multi-line f-string expression #7379

@dhruvmanila

Description

@dhruvmanila

Code snippet:

f"""test{
	tab_indented_should_be_flagged
}	<- this tab is fine"""

Command:

ruff check --no-cache --select=W191 --isolated test.py

Rule reference: https://beta.ruff.rs/docs/rules/tab-indentation/

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions