mirror of
https://github.com/apache/superset.git
synced 2026-06-11 02:29:19 +00:00
style: fix E501 noqa placement and PT001 in export_test.py
noqa: E501 comments were on the closing-paren line instead of on the actual long string lines, so ruff did not suppress the violations. Add # noqa: PT001 on the @pytest.fixture decorator to pin the no-parentheses style (ruff 0.9.7 default) and prevent ruff 0.5.x from auto-converting it in either direction. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -118,7 +118,7 @@ def test_export_assets_command(mocker: MockerFixture) -> None:
|
||||
]
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
@pytest.fixture # noqa: PT001
|
||||
def mock_export_tags_command_charts_dashboards(mocker):
|
||||
export_tags = mocker.patch("superset.commands.tag.export.ExportTagsCommand")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user