Skip to content

test(numeric): list only files that still have direct to_numeric calls - #411

Merged
kevincostner17 merged 1 commit into
mainfrom
test/numeric-deferred-list
Sep 15, 2026
Merged

kevincostner17 merged 1 commit into
mainfrom
test/numeric-deferred-list

Conversation

@kevincostner17

@kevincostner17 kevincostner17 commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Summary

This follows up #409. The static guard in tests/test_numeric.py skips files listed in _DEFERRED. Several of those files have no direct pd.to_numeric calls, so skipping them does nothing. Only enterprise/contracts.py still has direct calls (4).

  • _DEFERRED now lists only enterprise/contracts.py, so a new direct call in any other file fails the test.
  • The test also fails when a _DEFERRED entry has no direct calls, so the list can't go stale again.

This changes tests only; there are no source changes.

Verification

  • ruff check tests/test_numeric.py: passed
  • pytest tests/test_numeric.py: 230 passed on Python 3.12, 205 passed on Python 3.9

@coderabbitai

coderabbitai Bot commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: a9a626cf-3475-4fbf-b106-7b576b8a4852


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Only enterprise/contracts.py has direct pd.to_numeric calls left. The other entries in _DEFERRED had no references, so the static guard never counted them; drop them so the list stays accurate, and fail the test when a _DEFERRED entry has no direct calls so the list cannot go stale again.
@kevincostner17
kevincostner17 force-pushed the test/numeric-deferred-list branch from 9ef2c29 to c6b5211 Compare September 15, 2026 13:34
@kevincostner17
kevincostner17 merged commit 927599f into main Sep 15, 2026
19 checks passed
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.

1 participant