Skip to content

Commit eceaa8b

Browse files
committed
[DATALAD RUNCMD] chore: run codespell throughout fixing a few typos interactively
=== Do not change lines below === { "chain": [], "cmd": "codespell -w -i 3 -C 4 ./tests/framework/project/test_logging.py ./kedro/io/catalog_config_resolver.py", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^ Signed-off-by: Yaroslav Halchenko <debian@onerussian.com>
1 parent 10425b1 commit eceaa8b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

kedro/io/catalog_config_resolver.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -289,9 +289,9 @@ def _validate_pattern_config(cls, ds_name: str, ds_config: dict[str, Any]) -> No
289289
CatalogConfigResolver._validate_pattern_config(pattern, config)
290290
# No error
291291
pattern = "{namespace}.int_{name}"
292-
config = {"filepath": "{nam}.csv"}
292+
config = {"filepath": "{name}.csv"}
293293
CatalogConfigResolver._validate_pattern_config(pattern, config)
294-
# DatasetError: Incorrect dataset configuration provided. Keys used in the configuration {'{nam}'} should present in
294+
# DatasetError: Incorrect dataset configuration provided. Keys used in the configuration {'{name}'} should present in
295295
# the dataset pattern name {namespace}.int_{name}.
296296
```
297297
"""
@@ -394,15 +394,15 @@ def list_patterns(self) -> list[str]:
394394
return patterns
395395

396396
@classmethod
397-
def _get_matches(cls, pattens: Iterable[str], ds_name: str) -> Generator[str]:
397+
def _get_matches(cls, patterns: Iterable[str], ds_name: str) -> Generator[str]:
398398
"""
399399
Find all patterns that match a given dataset name.
400400
401401
This method iterates over a collection of patterns and checks if the given
402402
dataset name matches any of them using the `parse` function.
403403
404404
Args:
405-
pattens: A collection of patterns to match against.
405+
patterns: A collection of patterns to match against.
406406
ds_name: The name of the dataset to match.
407407
408408
Returns:
@@ -416,7 +416,7 @@ def _get_matches(cls, pattens: Iterable[str], ds_name: str) -> Generator[str]:
416416
# ['{namespace}.int_{name}']
417417
```
418418
"""
419-
return (pattern for pattern in pattens if parse(pattern, ds_name))
419+
return (pattern for pattern in patterns if parse(pattern, ds_name))
420420

421421
def match_dataset_pattern(self, ds_name: str) -> str | None:
422422
"""

tests/framework/project/test_logging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def test_rich_traceback_configuration(mocker, default_logging_config):
113113

114114

115115
def test_rich_traceback_configuration_extend_suppress(mocker, default_logging_config):
116-
"""Test the configuration is not overrided but extend for `suppress`"""
116+
"""Test the configuration is not overridden but extend for `suppress`"""
117117
import click
118118

119119
rich_traceback_install = mocker.patch("rich.traceback.install")

0 commit comments

Comments
 (0)