Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Feb 9, 2026

Visdom package was removed from requirements-dev.txt as it's unmaintained and incompatible with modern Python packages. This caused CI failures in type checking and code style workflows.

Changes

  • Type checking fix: Added # pyrefly: ignore to visdom import in ignite/handlers/visdom_logger.py since pyrefly cannot verify types for unavailable optional dependencies
  • Code style fix: Removed trailing whitespace from blank lines in tests/ignite/handlers/conftest.py
  • Test infrastructure: Moved visdom imports into fixture body and added pytest.skip() to prevent import errors
# Type checking now passes with optional dependency pattern
try:
    import visdom  # pyrefly: ignore
except ImportError:
    raise ModuleNotFoundError(...)

VisdomLogger remains available but displays warnings that it's untested. Tests skip gracefully when visdom is unavailable.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits February 9, 2026 09:31
- Remove visdom from requirements-dev.txt
- Add skip decorator to all visdom tests
- Comment out visdom execution in GitHub Actions workflow
- Add warning in VisdomLogger docstring
- Update conftest.py to skip visdom server fixture

Co-authored-by: vfdev-5 <2459423+vfdev-5@users.noreply.github.com>
- Add warning to setup_visdom_logging function docstring
- Add skip decorator to test_setup_visdom_logging

Co-authored-by: vfdev-5 <2459423+vfdev-5@users.noreply.github.com>
Copilot AI changed the title [WIP] Remove Visdom dependency and update documentation Remove unmaintained Visdom dependency Feb 9, 2026
Copilot AI requested a review from vfdev-5 February 9, 2026 09:38
@github-actions github-actions bot added module: handlers Core Handlers module module: contrib Contrib module ci CI labels Feb 9, 2026
- Move visdom imports into visdom_server fixture body
- Uncomment fixture code (will be skipped at runtime)
- Simplify workflow comment to be more concise

Co-authored-by: vfdev-5 <2459423+vfdev-5@users.noreply.github.com>
Since visdom is removed from requirements-dev.txt, pyrefly complains
about the import. Add ignore comment to suppress the type checking error.

Co-authored-by: vfdev-5 <2459423+vfdev-5@users.noreply.github.com>
Copilot AI changed the title Remove unmaintained Visdom dependency Add pyrefly ignore for visdom import to fix type checking Feb 9, 2026
@vfdev-5 vfdev-5 changed the title Add pyrefly ignore for visdom import to fix type checking Remove Visdom dependency and update documentation Feb 9, 2026
Co-authored-by: vfdev-5 <2459423+vfdev-5@users.noreply.github.com>
Copilot AI changed the title Remove Visdom dependency and update documentation Fix CI failures from visdom dependency removal Feb 9, 2026
@vfdev-5 vfdev-5 changed the title Fix CI failures from visdom dependency removal Remove Visdom dependency and update documentation Feb 9, 2026
@vfdev-5 vfdev-5 marked this pull request as ready for review February 9, 2026 09:57
Added TODO comment regarding py-rouge package and its dependency management.
@vfdev-5 vfdev-5 added this pull request to the merge queue Feb 9, 2026
Merged via the queue into master with commit 358b54c Feb 9, 2026
26 of 29 checks passed
@vfdev-5 vfdev-5 deleted the copilot/remove-visdom-dependency branch February 9, 2026 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci CI module: contrib Contrib module module: handlers Core Handlers module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants