build(ruff): update ruff configuration

This commit is contained in:
Nathaniel Landau
2023-01-28 22:08:42 +00:00
parent 42dd73b038
commit ac0090c6c9
2 changed files with 3 additions and 4 deletions

View File

@@ -60,7 +60,6 @@
"D204", "D204",
"D213", "D213",
"D215", "D215",
"D400",
"D404", "D404",
"D406", "D406",
"D407", "D407",

View File

@@ -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