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:
Amin Ghadersohi
2026-05-26 23:03:57 +00:00
parent e0149f38ee
commit 3dbfbbdefa

View File

@@ -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")