mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-26 19:05:13 +00:00
style: turn on ruff UP and B rules and fix every finding
This commit is contained in:
@@ -16,7 +16,6 @@ from __future__ import annotations
|
||||
|
||||
import re
|
||||
from pathlib import Path
|
||||
from typing import List
|
||||
|
||||
import pytest
|
||||
|
||||
@@ -29,7 +28,7 @@ PACKAGE_SETATTR = re.compile(r"""setattr\(\s*(?!loader\b)[\w.]+\s*,\s*["']load_c
|
||||
|
||||
|
||||
def test_no_test_patches_load_cdm_on_the_package() -> None:
|
||||
offenders: List[str] = []
|
||||
offenders: list[str] = []
|
||||
for path in sorted(TESTS_ROOT.rglob("test_*.py")):
|
||||
if path == Path(__file__).resolve():
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user