Skip to content

Commit 47b2eea

Browse files
author
Maximilian Sander
committed
Silence ruff
1 parent c99014c commit 47b2eea

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/datamodel_code_generator/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ def generate( # noqa: PLR0912, PLR0913, PLR0914, PLR0915
294294
no_alias: bool = False,
295295
formatters: list[Formatter] = DEFAULT_FORMATTERS,
296296
) -> None:
297-
global g_extend_yaml_scientifc_notation
297+
global g_extend_yaml_scientifc_notation # noqa: PLW0603
298298
g_extend_yaml_scientifc_notation = extend_yaml_scientifc_notation
299299
remote_text_cache: DefaultPutDict[str, str] = DefaultPutDict()
300300
if isinstance(input_, str):

src/datamodel_code_generator/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
from pathlib import Path
1717
from typing import Literal
1818

19-
from yaml import SafeLoader
19+
from yaml import SafeLoader # noqa: F811
2020

2121
def load_toml(path: Path) -> dict[str, Any]: ...
2222

2323
else:
24-
try:
24+
try: # noqa: SIM105
2525
from yaml import CSafeLoader as SafeLoader
2626
except ImportError: # pragma: no cover
2727
from yaml import SafeLoader

0 commit comments

Comments
 (0)