From 6ae2610ed47df02916a71fc45b82fe67026fe05c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 26 Aug 2024 21:18:10 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- dgtest/cli/cli.py | 4 ++-- dgtest/core/parse.py | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dgtest/cli/cli.py b/dgtest/cli/cli.py index 577e5e4..9ee6742 100644 --- a/dgtest/cli/cli.py +++ b/dgtest/cli/cli.py @@ -153,7 +153,7 @@ def list_command( filter_: Optional[str], branch: Optional[str], ) -> None: - """ See 'list_dgtest_results' for more detail """ + """See 'list_dgtest_results' for more detail""" list_dgtest_results(source, tests, depth, list(ignore_paths), filter_, branch) @@ -177,7 +177,7 @@ def run_command( branch: Optional[str], pytest_opts: Tuple[str], ) -> None: - """ See 'run_dgtest_results' for more detail """ + """See 'run_dgtest_results' for more detail""" code = run_dgtest_results( source, tests, depth, list(ignore_paths), filter_, branch, list(pytest_opts) ) diff --git a/dgtest/core/parse.py b/dgtest/core/parse.py index 8fd03f1..00d5c9e 100644 --- a/dgtest/core/parse.py +++ b/dgtest/core/parse.py @@ -69,7 +69,7 @@ def parse_definition_nodes_from_codebase( def parse_definition_nodes_from_file(file: str) -> Dict[str, Set[str]]: - """ See `parse_definition_nodes_from_codebase` """ + """See `parse_definition_nodes_from_codebase`""" with open(file) as f: root = ast.parse(f.read(), file) @@ -116,7 +116,7 @@ def parse_import_nodes_from_file( source: str, definition_map: Dict[str, Set[str]], ) -> Set[str]: - """ See `parse_import_nodes_from_codebase` """ + """See `parse_import_nodes_from_codebase`""" imports = _gather_import_nodes_from_file(file) paths = set() for import_ in imports: @@ -204,7 +204,7 @@ def parse_pytest_fixtures_from_codebase( def parse_pytest_fixtures_from_file( file: str, definition_map: Dict[str, Set[str]] ) -> Dict[str, Set[str]]: - """ See `parse_pytest_fixtures_from_codebase` """ + """See `parse_pytest_fixtures_from_codebase`""" fixture_nodes = _gather_fixture_nodes_from_file(file) # Parse the body of each fixture and find symbols. @@ -296,7 +296,7 @@ def parse_pytest_tests_from_file( definition_map: Dict[str, Set[str]], fixture_map: Dict[str, Set[str]], ) -> Dict[str, Set[str]]: - """ See `parse_pytest_tests_from_codebase` """ + """See `parse_pytest_tests_from_codebase`""" # Parse the test file's imports and create associations between source files and test files file_graph: DefaultDict[str, Set[str]] = defaultdict(set) source_file_paths = parse_import_nodes_from_file(test_file, source, definition_map)