Skip to content

refactor: remove include_warning option#218

Merged
ktro2828 merged 3 commits into
mainfrom
refactor/sanity/remove-include-warning
Nov 14, 2025
Merged

refactor: remove include_warning option#218
ktro2828 merged 3 commits into
mainfrom
refactor/sanity/remove-include-warning

Conversation

@ktro2828

Copy link
Copy Markdown
Collaborator

What

This pull request removes the --include-warning option from the t4sanity CLI and its associated logic in the codebase. This simplifies the interface by no longer allowing users to toggle warning reporting, and the related code for handling warnings has been cleaned up accordingly.

CLI and User Interface Simplification:

  • Removed the --include-warning (-iw) option from the t4sanity command-line interface and documentation, so users can no longer specify whether to report warnings.
  • Updated the main function in t4_devkit/cli/sanity.py to remove the include_warning parameter and its usage.

Internal Logic Cleanup:

  • Removed all logic related to handling the include_warning flag in the sanity_check function in t4_devkit/sanity/run.py, including the use of the warnings module to filter warnings.
  • Removed the unnecessary import of the warnings module from t4_devkit/sanity/run.py.

Signed-off-by: ktro2828 <kotaro.uetake@tier4.jp>
Copilot AI review requested due to automatic review settings November 14, 2025 03:59
@github-actions github-actions Bot added documentation Improvements or additions to documentation refactor Refactoring code or increasing performance labels Nov 14, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 removes the --include-warning option from the t4sanity CLI, simplifying the interface by eliminating the ability to toggle warning reporting behavior. The refactoring removes both the CLI option and its associated implementation logic.

Key changes:

  • Removed the --include-warning CLI option and parameter from the sanity_check function
  • Cleaned up the warnings module usage that was previously used to control warning behavior
  • Updated documentation to reflect the removed option

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
t4_devkit/sanity/run.py Removed include_warning parameter, warnings module import, and warning filtering logic
t4_devkit/cli/sanity.py Removed --include-warning CLI option and simplified the sanity_check function call
docs/cli/t4sanity.md Removed documentation for the --include-warning option

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

Comment thread t4_devkit/cli/sanity.py Outdated
@github-actions

github-actions Bot commented Nov 14, 2025

Copy link
Copy Markdown
Contributor

☂️ Python Coverage

current status: ❌

Overall Coverage

Lines Covered Coverage Threshold Status
3887 2125 55% 50% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
t4_devkit/sanity/run.py 0% 🔴
TOTAL 0% 🔴

updated for commit: 8d9534c by action🐍

ktro2828 and others added 2 commits November 14, 2025 13:00
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@ktro2828 ktro2828 merged commit 149a801 into main Nov 14, 2025
@ktro2828 ktro2828 deleted the refactor/sanity/remove-include-warning branch November 14, 2025 04:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation refactor Refactoring code or increasing performance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants