From cb22ea8f6d8780e5d8e6e202524b874b2e40352c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 24 Mar 2026 21:33:35 +0000 Subject: [PATCH 1/2] Initial plan From 53cda078ca197313535b2006f581bea860067474 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 24 Mar 2026 21:41:34 +0000 Subject: [PATCH 2/2] Fix CI failures: validate_file return value, SPDX headers, test argument typo Co-authored-by: bashandbone <89049923+bashandbone@users.noreply.github.com> Agent-Logs-Url: https://github.com/knitli/exportify/sessions/3d21c435-34ca-46c3-a023-3e53e610b0e2 --- CHANGELOG.md | 6 ++++++ cliff.toml | 4 ++++ src/exportify/validator/validator.py | 3 +-- tests/test_ast_parser.py | 2 +- 4 files changed, 12 insertions(+), 3 deletions(-) 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: