Skip to content
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

Deprecation check #948

Merged
merged 3 commits into from Sep 29, 2018
Merged

Deprecation check #948

merged 3 commits into from Sep 29, 2018

Conversation

jrleeman
Copy link
Contributor

Will check for MetPy deprecation warnings to ensure we don't ship things calling deprecated code. Closes #934. Will need to be merged after the rest of the 0.9.2 related items.

@jrleeman jrleeman added the Area: Infrastructure Pertains to project infrastructure (e.g. CI, linting) label Sep 28, 2018
@jrleeman jrleeman added this to the 0.9.2 milestone Sep 28, 2018
metpy/testing.py Outdated
def wrapper(*args, **kwargs):
with pytest.warns(MetpyDeprecationWarning):
return func(*args, **kwargs)
return wrapper

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

W292 no newline at end of file

@jrleeman
Copy link
Contributor Author

Failing as the doctests hit deprecation warnings everywhere and we can't exactly decorate those.... Hmmm. Might have to specify the warning filter in the CI configs 😭

@jrleeman
Copy link
Contributor Author

Ok should be solid now.

@dopplershift dopplershift merged commit a046f7a into Unidata:master Sep 29, 2018
@dopplershift
Copy link
Member

To be clear, this doesn't require a new pytest plugin?

@jrleeman
Copy link
Contributor Author

I does not appear to in my testing

@jrleeman jrleeman deleted the deprecation_check branch September 29, 2018 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Infrastructure Pertains to project infrastructure (e.g. CI, linting)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants