Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 26, 2024
1 parent 9a26b78 commit 6ae2610
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions dgtest/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand All @@ -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)
)
Expand Down
8 changes: 4 additions & 4 deletions dgtest/core/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 6ae2610

Please sign in to comment.