Skip to content

Commit b1c2a40

Browse files
Fix ruff issues in audio filters
1 parent cf3c1be commit b1c2a40

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

audio_filters/equal_loudness_filter.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from audio_filters.iir_filter import IIRFilter
44

5-
65
# Coefficients from the "Original ReplayGain specification" (Equal Loudness Filter)
76
# - Yulewalk: 10th-order IIR
87
# - Butterworth: 2nd-order high-pass at 150 Hz
@@ -128,9 +127,11 @@ class EqualLoudnessFilter:
128127
def __init__(self, samplerate: int = 44100) -> None:
129128
if samplerate not in _REPLAYGAIN_COEFFS:
130129
supported = ", ".join(str(sr) for sr in sorted(_REPLAYGAIN_COEFFS))
131-
raise ValueError(
132-
f"Unsupported samplerate {samplerate}. Supported samplerates: {supported}"
130+
msg = (
131+
f"Unsupported samplerate {samplerate}. "
132+
f"Supported samplerates: {supported}"
133133
)
134+
raise ValueError(msg)
134135

135136
coeffs = _REPLAYGAIN_COEFFS[samplerate]
136137

0 commit comments

Comments
 (0)