diff --git a/CHANGELOG.md b/CHANGELOG.md index 43f75d6..5febb1c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ + + ## [unreleased] ### 🐛 Bug Fixes diff --git a/cliff.toml b/cliff.toml index a18fc20..1b4ec93 100644 --- a/cliff.toml +++ b/cliff.toml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2026 Knitli Inc. +# +# SPDX-License-Identifier: MIT OR Apache-2.0 + # git-cliff ~ configuration file # https://git-cliff.org/docs/configuration diff --git a/src/exportify/validator/validator.py b/src/exportify/validator/validator.py index 0646b7f..972455c 100644 --- a/src/exportify/validator/validator.py +++ b/src/exportify/validator/validator.py @@ -63,8 +63,7 @@ def validate_file( Returns: Tuple of (list of issues, count of lateimport calls, parsed AST tree or None) """ - issues, _, _ = self._validate_file_with_metrics(file_path) - return issues + return self._validate_file_with_metrics(file_path) def _validate_file_with_metrics( self, file_path: Path diff --git a/tests/test_ast_parser.py b/tests/test_ast_parser.py index a78c1e2..189e2b0 100644 --- a/tests/test_ast_parser.py +++ b/tests/test_ast_parser.py @@ -181,7 +181,7 @@ def test_annotated_assignment_attribute_target(self, parser) -> None: """ file_path = create_temp_file(content) try: - result = parser.parse_file(file_path, "test.module") + result = parser.parse_file(file_path) assert len(result.symbols) == 0 finally: