Skip to content

MNT: 5.0.0 deprecations #1159

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Dec 27, 2022
Merged

Conversation

effigies
Copy link
Member

@effigies effigies commented Dec 25, 2022

A few issues missed by #1141, found by tagging and re-running tests.

Main changes:

  1. Add an @expires(version) decorator that will turn tests into xfail(raises=ExpiredDeprecationError) when the version comes around. This means we can continue testing the functionality as long as it actually exists without needing to delete a bunch of tests just before we release.

  2. Truncate docstrings after expiration. We don't need detailed descriptions of behavior that no longer is actually present, and doctests are basically guaranteed to fail.

  3. Allow pytest.marks to be set on API validator methods.

@codecov
Copy link

codecov bot commented Dec 25, 2022

Codecov Report

Base: 92.40% // Head: 92.38% // Decreases project coverage by -0.02% ⚠️

Coverage data is based on head (bc45f47) compared to base (943e5e8).
Patch coverage: 88.23% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1159      +/-   ##
==========================================
- Coverage   92.40%   92.38%   -0.03%     
==========================================
  Files          98       98              
  Lines       12248    12264      +16     
  Branches     2516     2520       +4     
==========================================
+ Hits        11318    11330      +12     
- Misses        611      613       +2     
- Partials      319      321       +2     
Impacted Files Coverage Δ
nibabel/testing/__init__.py 98.14% <75.00%> (-1.86%) ⬇️
nibabel/deprecator.py 100.00% <100.00%> (ø)
nibabel/dataobj_images.py 94.73% <0.00%> (-3.51%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@effigies effigies merged commit 557a7f2 into nipy:master Dec 27, 2022
@effigies effigies added this to the 5.0.0 milestone Jan 3, 2023
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