Add more CI checks (#1150)

* Enable mypy.

* Add flake8.

* Add pylint with a long list of ignores to be removed.
This commit is contained in:
Felix Fontein
2025-10-07 19:37:16 +02:00
committed by GitHub
parent 449b37e1c9
commit acf18f0ade
13 changed files with 705 additions and 19 deletions
+2 -2
View File
@@ -287,7 +287,7 @@ class AnsibleDockerClientBase(Client):
result = self.get_json("/containers/{0}/json", container_id)
self.log("Completed container inspection")
return result
except NotFound as dummy:
except NotFound:
return None
except Exception as exc:
self.fail(f"Error inspecting container: {exc}")
@@ -369,7 +369,7 @@ class AnsibleDockerClientBase(Client):
self.log(f"Inspecting network Id {network_id}")
result = self.get_json("/networks/{0}", network_id)
self.log("Completed network inspection")
except NotFound as dummy:
except NotFound:
return None
except Exception as exc:
self.fail(f"Error inspecting network: {exc}")