mirror of
https://github.com/iluvcapra/wavinfo.git
synced 2026-10-01 17:27:42 +00:00
Ruff: Fixed SIM115
This commit is contained in:
+1
-1
@@ -67,7 +67,7 @@ fixable = ['ALL']
|
||||
ignore = [
|
||||
'FA100', #Add `from __future__ import annotations` to simplify `typing.Optional`
|
||||
'UP022', # Prefer `capture_output` over sending `stdout` and `stderr` to `PIPE`
|
||||
'SIM115', # Use a context manager for opening files
|
||||
# 'SIM115', # Use a context manager for opening files
|
||||
'UP031', #Use format specifiers instead of percent format
|
||||
# 'C408', # Unnecessary `dict()` call (rewrite as a literal)
|
||||
# 'C417' # Unnecessary `map()` usage (rewrite using a generator expression)
|
||||
|
||||
+1
-3
@@ -15,8 +15,6 @@ class TestRf64(TestCase):
|
||||
|
||||
def test_open(self):
|
||||
for path in glob("tests/test_files/rf64/*.wav.gz"):
|
||||
gz = gzip.open(path)
|
||||
with gzip.open(path) as gz:
|
||||
wav_info = wavinfo.WavInfoReader(gz)
|
||||
|
||||
self.assertIsNotNone(wav_info)
|
||||
# self.assertIsNotNone(wav_info.bext)
|
||||
|
||||
Reference in New Issue
Block a user