Skip to content

Turn warnings into errors in the test suite - #45

Merged
user27182 merged 7 commits into
mainfrom
test/warnings-as-errors
Oct 27, 2026
Merged

user27182 merged 7 commits into
mainfrom
test/warnings-as-errors

Conversation

@user27182

@user27182 user27182 commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Turns warnings into errors in the test suite.

  • filterwarnings = ['error'] for the test suite.
  • The fast-versus-pure agreement tests record each call's warnings and require the C and Python paths to emit the same ones, so NumPy's cast warnings from validate_array(dtype_out=...) no longer leak.
  • The type-assert settings move to a [tool.type-assert] table (type-assert 0.6.0), which pytest does not read, so jobs without the plugin raise no unknown option warning.

🤖 Generated with Claude Code (Claude Opus 5.5)

user27182 and others added 2 commits September 27, 2026 12:39
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…them

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov-commenter

codecov-commenter commented Sep 27, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.74%. Comparing base (20ed314) to head (d498b24).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #45      +/-   ##
==========================================
- Coverage   99.74%   99.74%   -0.01%     
==========================================
  Files          11       11              
  Lines        1169     1167       -2     
  Branches      135      135              
==========================================
- Hits         1166     1164       -2     
  Misses          1        1              
  Partials        2        2              
Flag Coverage Δ
tests 99.46% <ø> (ø)
typing 97.88% <ø> (-0.01%) ⬇️

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

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

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

@user27182
user27182 marked this pull request as ready for review October 27, 2026 06:10
@user27182
user27182 merged commit 9173893 into main Oct 27, 2026
3 checks passed
@user27182
user27182 deleted the test/warnings-as-errors branch October 27, 2026 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants