Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
rev: v6.0.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: requirements-txt-fixer
- repo: https://github.com/timothycrosley/isort
rev: 5.5.2
- repo: https://github.com/PyCQA/isort
rev: 9.0.0a3
hooks:
- id: isort
args: ["--profile", "black"]
- repo: https://github.com/psf/black
rev: 20.8b1
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 26.3.1
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v0.720'
rev: 'v1.20.2'
hooks:
- id: mypy
args: [--ignore-missing-imports, --disallow-untyped-defs]
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
2 changes: 1 addition & 1 deletion tests/integration/test_great_expectations.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def clean_dictionary_of_tmpdir_prefix(remove_tmpdir_path_prefix: Callable) -> Ca
"""

def _clean_dictionary_of_tmpdir_prefix(
graph: Dict[str, Set[str]]
graph: Dict[str, Set[str]],
) -> Dict[str, Set[str]]:
cleaned_graph = {}
for key, value in graph.items():
Expand Down