Skip to content
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

Fix verdi devel check-undesired-imports when tui extra is installed #6693

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

danielhollas
Copy link
Collaborator

@danielhollas danielhollas commented Jan 9, 2025

Fixes #6691.

To test the fix run

uv sync --extra tui
uv run verdi devel check-undesired-imports

This will fail on main with

Warning: Detected loaded module "asyncio"
Critical: Detected 1 unwanted modules

Copy link

codecov bot commented Jan 9, 2025

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.

Project coverage is 77.99%. Comparing base (7387056) to head (ae9b298).

Files with missing lines Patch % Lines
src/aiida/cmdline/commands/cmd_devel.py 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6693      +/-   ##
==========================================
- Coverage   78.00%   77.99%   -0.00%     
==========================================
  Files         563      563              
  Lines       41766    41769       +3     
==========================================
  Hits        32574    32574              
- Misses       9192     9195       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@danielhollas danielhollas requested a review from unkcpz January 15, 2025 17:12
@danielhollas danielhollas force-pushed the check-undesired-imports-tui-fix branch from 1b1a850 to eb1e91b Compare January 15, 2025 17:13
@@ -129,8 +129,6 @@ jobs:
with:
python-version: '3.12'
from-lock: 'true'
# NOTE: The `verdi devel check-undesired-imports` fails if
# the 'tui' extra is installed.
extras: ''
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we include the extras here again? We just removed the extras because of the tui problem right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No, the extras were never included in this check, and I don't see why we should include them if they are not needed here.

Copy link
Contributor

@agoscinski agoscinski left a comment

Choose a reason for hiding this comment

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

thanks for the fix! had just one question

@danielhollas danielhollas force-pushed the check-undesired-imports-tui-fix branch from eb1e91b to 45c2d0a Compare January 16, 2025 12:35
@danielhollas danielhollas force-pushed the check-undesired-imports-tui-fix branch from 45c2d0a to ae9b298 Compare January 16, 2025 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

verdi devel check-undesired-imports fails when tui extras is installed
2 participants