From ac0090c6c9afe2c0896b7106533b8a710368dd80 Mon Sep 17 00:00:00 2001 From: Nathaniel Landau Date: Sat, 28 Jan 2023 22:08:42 +0000 Subject: [PATCH] build(ruff): update ruff configuration --- pyproject.toml | 1 - src/obsidian_metadata/_utils/utilities.py | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 566263b..72be3d8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -60,7 +60,6 @@ "D204", "D213", "D215", - "D400", "D404", "D406", "D407", diff --git a/src/obsidian_metadata/_utils/utilities.py b/src/obsidian_metadata/_utils/utilities.py index 5667355..39d4cfe 100644 --- a/src/obsidian_metadata/_utils/utilities.py +++ b/src/obsidian_metadata/_utils/utilities.py @@ -52,7 +52,7 @@ def remove_markdown_sections( strip_inlinecode: bool = False, strip_frontmatter: bool = False, ) -> str: - """Strips markdown sections from text. + """Strip markdown sections from text. Args: text (str): Text to remove code blocks from @@ -121,7 +121,7 @@ def clean_dictionary(dictionary: dict[str, Any]) -> dict[str, Any]: def clear_screen() -> None: # pragma: no cover - """Clears the screen.""" + """Clear the screen.""" # for windows _ = system("cls") if name == "nt" else system("clear") @@ -129,7 +129,7 @@ def clear_screen() -> None: # pragma: no cover def dict_contains( dictionary: dict[str, list[str]], key: str, value: str = None, is_regex: bool = False ) -> bool: - """Checks if a dictionary contains a key. + """Check if a dictionary contains a key. Args: dictionary (dict): Dictionary to check