@@ -125,9 +125,9 @@ def test_audio_gemma4_writes_feature_extraction_json(self, tmp_path):
125125 attrs = seq [1 ]["operation" ]["attrs" ]
126126 assert attrs ["feature_size" ] == 128
127127 assert attrs ["sampling_rate" ] == 16000
128- assert attrs ["frame_length_ms" ] == 20.0
129- assert attrs ["hop_length_ms" ] == 10.0
130- assert attrs ["mel_floor" ] == 0.001
128+ assert attrs ["frame_length_ms" ] == 20.0 # noqa: RUF069
129+ assert attrs ["hop_length_ms" ] == 10.0 # noqa: RUF069
130+ assert attrs ["mel_floor" ] == 0.001 # noqa: RUF069
131131
132132
133133class TestCopyTokenizerFiles :
@@ -472,7 +472,7 @@ class FakeConfig:
472472 assert op1 ["type" ] == "Gemma4LogMel"
473473 assert op1 ["attrs" ]["feature_size" ] == 128
474474 assert op1 ["attrs" ]["sampling_rate" ] == 16000
475- assert op1 ["attrs" ]["mel_floor" ] == 0.001
475+ assert op1 ["attrs" ]["mel_floor" ] == 0.001 # noqa: RUF069
476476
477477 def test_gemma4_audio_processor_not_written_without_audio (self , tmp_path ):
478478 """No audio_feature_extraction.json when config has no audio attr."""
@@ -534,7 +534,9 @@ class FakeConfig:
534534 data = json .load (f )
535535
536536 # Speech section must exist
537- assert "speech" in data ["model" ], "genai_config.json should have a speech section for Gemma4 with audio_encoder"
537+ assert "speech" in data ["model" ], (
538+ "genai_config.json should have a speech section for Gemma4 with audio_encoder"
539+ )
538540 speech = data ["model" ]["speech" ]
539541
540542 # config_filename must point to the onnxruntime-extensions audio config
0 commit comments