mirror of
https://github.com/containers/podman-compose.git
synced 2025-06-19 03:16:39 +02:00
Merge pull request #1143 from italomaia/bug/use-ruff
Bug: replaced black with ruff on pre-commit
This commit is contained in:
commit
976847ef9b
@ -1,17 +1,9 @@
|
|||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/psf/black
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
rev: 23.3.0
|
rev: v0.9.6
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: ruff
|
||||||
# It is recommended to specify the latest version of Python
|
|
||||||
# supported by your project here, or alternatively use
|
|
||||||
# pre-commit's default_language_version, see
|
|
||||||
# https://pre-commit.com/#top_level-default_language_version
|
|
||||||
language_version: python3.10
|
|
||||||
types: [python]
|
types: [python]
|
||||||
args: [
|
|
||||||
"--check", # Don't apply changes automatically
|
|
||||||
]
|
|
||||||
- repo: https://github.com/pycqa/flake8
|
- repo: https://github.com/pycqa/flake8
|
||||||
rev: 6.0.0
|
rev: 6.0.0
|
||||||
hooks:
|
hooks:
|
||||||
|
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user