Enforce more ruff rules (#5922)

* Apply ruff/flake8-implicit-str-concat rule ISC003

ISC003 Explicitly concatenated string should be implicitly concatenated

* Enforce ruff/flake8-implicit-str-concat rules (ISC)

* Apply ruff/Perflint rule PERF102

PERF102 When using only the values of a dict use the `values()` method

* Apply ruff/Perflint rule PERF401

PERF401 Use a list comprehension to create a transformed list

* Enforce ruff/Perflint rules (PERF)
This commit is contained in:
Dimitri Papadopoulos Orfanos
2025-12-08 18:25:25 +01:00
committed by GitHub
parent 1c1d01c8a1
commit 6651530963
4 changed files with 8 additions and 10 deletions

View File

@@ -288,11 +288,7 @@ def test_redirect_both(capfd):
def test_threading():
with m.ostream_redirect(stdout=True, stderr=False):
# start some threads
threads = []
# start some threads
for _j in range(20):
threads.append(m.TestThread())
threads = [m.TestThread() for _j in range(20)]
# give the threads some time to fail
threads[0].sleep()