Skip to content

Commit 58bd094

Browse files
[pre-commit.ci] pre-commit autoupdate (#87)
1 parent 32616c3 commit 58bd094

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ repos:
1414
- id: check-toml
1515
# Python
1616
- repo: https://github.com/astral-sh/ruff-pre-commit
17-
rev: v0.7.4
17+
rev: v0.9.3
1818
hooks:
1919
- id: ruff
2020
args: [ --fix ]

dargs/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
from .dargs import Argument, ArgumentEncoder, Variant
44

5-
__all__ = ["Argument", "Variant", "ArgumentEncoder"]
5+
__all__ = ["Argument", "ArgumentEncoder", "Variant"]

dargs/dargs.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ def _check_exist(self, argdict: dict, path=None):
460460
return
461461
if self.name not in argdict:
462462
raise ArgumentKeyError(
463-
path, f"key `{self.name}` is required " "in arguments but not found"
463+
path, f"key `{self.name}` is required in arguments but not found"
464464
)
465465

466466
def _check_data(self, value: Any, path=None):
@@ -862,8 +862,7 @@ def get_choice(self, argdict: dict, path=None) -> Argument:
862862
else:
863863
raise ArgumentKeyError(
864864
path,
865-
f"key `{self.flag_name}` is required "
866-
"to choose variant but not found.",
865+
f"key `{self.flag_name}` is required to choose variant but not found.",
867866
)
868867

869868
def flatten_sub(self, argdict: dict, path=None) -> dict[str, Argument]:

0 commit comments

Comments
 (0)