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
+1 -1
View File
@@ -484,7 +484,7 @@ class ServicesManager(BaseComposeManager):
self.fail(f"The key {key!r} for `scale` is not a string")
try:
value = check_type_int(value)
except TypeError as exc:
except TypeError:
self.fail(f"The value {value!r} for `scale[{key!r}]` is not an integer")
if value < 0:
self.fail(f"The value {value!r} for `scale[{key!r}]` is negative")