cq: Fix/ignore ruff errors
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user