mirror of
https://github.com/natelandau/obsidian-metadata.git
synced 2025-11-17 01:13:39 -05:00
build(ruff): update ruff configuration
This commit is contained in:
@@ -60,7 +60,6 @@
|
|||||||
"D204",
|
"D204",
|
||||||
"D213",
|
"D213",
|
||||||
"D215",
|
"D215",
|
||||||
"D400",
|
|
||||||
"D404",
|
"D404",
|
||||||
"D406",
|
"D406",
|
||||||
"D407",
|
"D407",
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ def remove_markdown_sections(
|
|||||||
strip_inlinecode: bool = False,
|
strip_inlinecode: bool = False,
|
||||||
strip_frontmatter: bool = False,
|
strip_frontmatter: bool = False,
|
||||||
) -> str:
|
) -> str:
|
||||||
"""Strips markdown sections from text.
|
"""Strip markdown sections from text.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
text (str): Text to remove code blocks from
|
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
|
def clear_screen() -> None: # pragma: no cover
|
||||||
"""Clears the screen."""
|
"""Clear the screen."""
|
||||||
# for windows
|
# for windows
|
||||||
_ = system("cls") if name == "nt" else system("clear")
|
_ = system("cls") if name == "nt" else system("clear")
|
||||||
|
|
||||||
@@ -129,7 +129,7 @@ def clear_screen() -> None: # pragma: no cover
|
|||||||
def dict_contains(
|
def dict_contains(
|
||||||
dictionary: dict[str, list[str]], key: str, value: str = None, is_regex: bool = False
|
dictionary: dict[str, list[str]], key: str, value: str = None, is_regex: bool = False
|
||||||
) -> bool:
|
) -> bool:
|
||||||
"""Checks if a dictionary contains a key.
|
"""Check if a dictionary contains a key.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
dictionary (dict): Dictionary to check
|
dictionary (dict): Dictionary to check
|
||||||
|
|||||||
Reference in New Issue
Block a user