Skip to content

fix: add logging for file inclusion #1110

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 26, 2025
Merged

fix: add logging for file inclusion #1110

merged 3 commits into from
Jun 26, 2025

Conversation

henryiii
Copy link
Collaborator

See #1105. Pulled from #1048, also added tests for the current behavior.

@henryiii henryiii requested a review from Copilot June 26, 2025 21:47
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds detailed logging to the file inclusion/exclusion logic in each_unignored_file, along with new tests to verify include/exclude patterns, nested .gitignore behavior, and build_dir support.

  • Introduce logger.info calls to explain why files are included or excluded at each decision point
  • Add comprehensive tests for default behavior, include/exclude overrides, gitignore interactions, nested ignores, build directory exclusion, and edge cases
  • Update changelog.md to document the new logging feature

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
tests/test_file_processor.py New tests for each_unignored_file covering include/exclude, nested ignores, build_dir, and edge cases
src/scikit_build_core/build/_file_processor.py Added logger.info statements to trace inclusion/exclusion logic
docs/about/changelog.md Changelog entry for the new logging feature

@henryiii henryiii merged commit 983068d into main Jun 26, 2025
60 checks passed
@henryiii henryiii deleted the henryiii/fix/logfiles branch June 26, 2025 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant