Skip to content

Conversation

@auvipy
Copy link
Member

@auvipy auvipy commented Oct 18, 2025

No description provided.

@auvipy auvipy added this to the 5.6.0 milestone Oct 18, 2025
@auvipy auvipy requested a review from Copilot October 18, 2025 19:39
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 PR addresses flake8 style issues by removing unnecessary nonlocal declarations in test code where variables are only read, not reassigned.

  • Remove redundant nonlocal statements in nested function/method scopes
  • No functional behavior changes; tests should behave identically

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
t/unit/tasks/test_stamping.py Removed nonlocal declaration in on_signature; variable is only read, satisfying flake8 without changing behavior.
t/smoke/tests/test_thread_safe.py Removed nonlocal declaration in signal handler; the variable is called, not reassigned.

@codecov
Copy link

codecov bot commented Oct 18, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.67%. Comparing base (4df81dd) to head (6faf4e4).
⚠️ Report is 55 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #9955   +/-   ##
=======================================
  Coverage   78.67%   78.67%           
=======================================
  Files         153      153           
  Lines       19299    19299           
  Branches     2211     2211           
=======================================
  Hits        15183    15183           
  Misses       3816     3816           
  Partials      300      300           
Flag Coverage Δ
unittests 78.65% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@auvipy auvipy marked this pull request as ready for review October 18, 2025 19:42
@blacksmith-sh
Copy link
Contributor

blacksmith-sh bot commented Oct 18, 2025

✅ All jobs passed

Summary: 5 successful workflows

Last updated: 2025-10-18 20:00:34 UTC

@auvipy auvipy merged commit 508cb7c into main Oct 18, 2025
20 of 21 checks passed
@auvipy auvipy deleted the flake8 branch October 18, 2025 19:42
kumuthu53 pushed a commit to lynxx-apac/celery that referenced this pull request Oct 22, 2025
* remove nonlocal to fix flake8

* remove nonlocal to fix flake8
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