Skip to content

Remove unused struct import in xcp/cto_commands_slave.py - #5118

Merged
polybassa merged 2 commits into
masterfrom
copilot/fix-code-health-check
Aug 28, 2026
Merged

Remove unused struct import in xcp/cto_commands_slave.py#5118
polybassa merged 2 commits into
masterfrom
copilot/fix-code-health-check

Conversation

Copilot AI commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

The "Code health check" CI job was failing due to a flake8 F401 error ('struct' imported but unused) in scapy/contrib/automotive/xcp/cto_commands_slave.py.

Changes

  • scapy/contrib/automotive/xcp/cto_commands_slave.py: Remove the unused import struct statement introduced at the top of the file.

AI-Assisted: yes [GitHub Copilot]
Co-authored-by: polybassa <1676055+polybassa@users.noreply.github.com>
AI-Assisted: yes [GitHub Copilot]
Copilot AI changed the title [WIP] Fix failing GitHub Actions job code health check Remove unused struct import in xcp/cto_commands_slave.py Aug 28, 2026
Copilot AI requested a review from polybassa August 28, 2026 04:23
Copilot AI force-pushed the copilot/fix-code-health-check branch from bba1904 to 05f380b Compare August 28, 2026 04:27
@polybassa
polybassa marked this pull request as ready for review August 28, 2026 04:33
@polybassa
polybassa merged commit 120a9da into master Aug 28, 2026
12 of 22 checks passed
@polybassa
polybassa deleted the copilot/fix-code-health-check branch August 28, 2026 04:33
@codecov

codecov Bot commented Aug 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 47.48%. Comparing base (6a28cf1) to head (05f380b).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5118      +/-   ##
==========================================
- Coverage   47.49%   47.48%   -0.01%     
==========================================
  Files         372      372              
  Lines       96538    96537       -1     
==========================================
- Hits        45847    45843       -4     
- Misses      50691    50694       +3     
Files with missing lines Coverage Δ
scapy/contrib/automotive/xcp/cto_commands_slave.py 81.19% <ø> (-0.16%) ⬇️

... and 3 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

2 participants