Adds lint exclusions already ignored by the code

Added flake8 excludes to rules that are already ignored by the current
code to avoid validation issues with code that has already been
approved. Added pylint disable to line with lint offense already
accepted.

Signed-off-by: Italo Maia <italo.maia@gmail.com>
This commit is contained in:
Italo Maia 2025-02-25 20:04:22 +01:00 committed by Povilas Kanapickas
parent 10ad739746
commit c6b3d497d6
2 changed files with 5 additions and 2 deletions

View File

@ -1299,7 +1299,8 @@ class ServiceDependencyCondition(Enum):
try: try:
return docker_to_podman_cond[value] return docker_to_podman_cond[value]
except KeyError: except KeyError:
raise ValueError(f"Value '{value}' is not a valid condition for a service dependency") # pylint: disable=raise-missing-from # pylint: disable-next=raise-missing-from
raise ValueError(f"Value '{value}' is not a valid condition for a service dependency")
class ServiceDependency: class ServiceDependency:

View File

@ -6,4 +6,6 @@ version = attr: podman_compose.__version__
[flake8] [flake8]
# The GitHub editor is 127 chars wide # The GitHub editor is 127 chars wide
max-line-length=127 max-line-length=127
# These are not being followed yet
ignore=E222,E231,E272,E713,W503