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

Don't use deprecated methods from pystac #455

Merged
merged 2 commits into from
Aug 11, 2023
Merged

Conversation

gadomski
Copy link
Member

@gadomski gadomski commented Aug 10, 2023

Description:
Disallow warnings in tests, which encourages (nay, forces) us to stop using deprecated items. There are some warnings from stac-check that I'm having trouble filtering out, so for now I'm dropping the "upgrade to error" bit and just fixing the deprecated pystac function usages.

PR checklist:

  • Code is formatted (run scripts/format).
  • Code lints properly (run scripts/lint).
  • Tests pass (run scripts/test).
  • Documentation has been updated to reflect changes, if applicable.
  • Changes are added to the CHANGELOG.

@gadomski gadomski requested a review from jsignell August 10, 2023 19:46
@gadomski gadomski self-assigned this Aug 10, 2023
@gadomski gadomski changed the title Disallow warnings in tests Don't use deprecated methods from pystac Aug 10, 2023
Copy link
Member

@jsignell jsignell left a comment

Choose a reason for hiding this comment

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

Nice! I think you can set the behavior of warnings based on what library they come from. So for instance you could set only pystac warnings to error. It looks like this: https://github.com/dask/dask/blob/ca4d1d5830a2efe9650aa6485302193c2aacaf7b/pyproject.toml#L129

@gadomski
Copy link
Member Author

Cool, I'll try the glob. I was trying to do it with exact name and failing.

@gadomski
Copy link
Member Author

Tight, that worked! I tested by cherry picking 6b17e05 onto main. Thanks @jsignell!

@gadomski gadomski enabled auto-merge (squash) August 11, 2023 13:29
@gadomski gadomski merged commit e378487 into main Aug 11, 2023
18 checks passed
@gadomski gadomski deleted the disallow-warnings-in-tests branch August 11, 2023 13:49
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