cq: Fix/ignore ruff errors

This commit is contained in:
wurstsalat
2025-02-27 21:28:13 +01:00
parent 71f9292ea0
commit b4facf0287
3 changed files with 10 additions and 9 deletions

View File

@@ -158,8 +158,8 @@ class ChooseGPGKeyDialog(GajimAppWindow):
model = cast(Gtk.ListStore, self._ui.keys_treeview.get_model())
model.set_sort_func(1, self._sort)
for key_id in secret_keys:
model.append((key_id, secret_keys[key_id]))
for key_id, key_label in secret_keys.items():
model.append((key_id, key_label))
self.set_child(self._ui.box)
self.show()

View File

@@ -39,7 +39,7 @@ def find_gpg():
gpg_cmd = binary + " -h >nul 2>&1"
else:
gpg_cmd = binary + " -h >/dev/null 2>&1"
if subprocess.call(gpg_cmd, shell=True): # noqa: S602
if subprocess.call(gpg_cmd, shell=True): # noqa: S602, SIM103
return False
return True