Skip to content

Conversation

@VisLab
Copy link
Member

@VisLab VisLab commented Jan 20, 2026

No description provided.

Copy link
Contributor

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 pull request refactors logging configuration across HED command-line scripts to create a more uniform approach. The changes centralize logging setup into a shared utility function and update the CLI commands to properly handle exit codes.

Changes:

  • Centralized logging setup by using setup_logging() from script_utils.py instead of duplicated implementations
  • Replaced print statement with proper debug logging in validate_bids.py
  • Updated CLI commands to use @click.pass_context and ctx.exit() for proper exit code handling

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.

File Description
hed/scripts/validate_bids.py Replaced print statement with logger.debug() for argument logging
hed/scripts/hed_extract_bids_sidecar.py Removed duplicate logging setup code and imported centralized setup_logging function
hed/scripts/extract_tabular_summary.py Removed duplicate logging setup function and used centralized version
hed/cli/cli.py Added context passing and proper exit code handling to all CLI commands

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@VisLab VisLab merged commit 59da1c2 into hed-standard:main Jan 21, 2026
19 checks passed
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