Fix ruff's recommendation:
phase2/master.cfg:328:16: E721 Do not compare types, use `isinstance()`
"Unlike a direct type comparison, isinstance will also check if an
object is an instance of a class or a subclass thereof."
Signed-off-by: Petr Štetiar <ynezz@true.cz>
pos = 99
for name, prio in bldrNamePrio.items():
if bldr.name.startswith(name):
- pos = prio + 50 - min(hiprio, 50) # higher priority (larger positive number) raises position
+ # higher priority (larger positive number) raises position
+ pos = prio + 50 - min(hiprio, 50)
break
# pos order: janitor/local (0), tag builds if any [1..50], !tag builds [51...]
def CheckArchitectureProperty(step):
try:
options = step.getProperty("options")
- if type(options) is dict:
+ if isinstance(options, dict):
selected_arch = options.get("architecture", "all")
if selected_arch != "all" and selected_arch != target:
return False
cram==0.7
-black==23.3.0
-ruff==0.0.267
+black==23.12.1
+ruff==0.1.9
flake8==6.1.0