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

Chore/template upgrade #23

Merged

Conversation

wildintellect
Copy link
Contributor

@wildintellect wildintellect commented Jan 13, 2023

Before you submit a pull request, please fill in the following:

Related Issue(s):
Please add links (if any) to related github issues.
#22

Description:
Upgraded the scripts and requirements based on the latest stactools-template and stactools version. This upgrades all the linting tools and includes enabling pre-commit. As a result all of the type hinting had to be overhauled throughout the package in order to pass all the format, linting, and tests. This includes some improvements to error handling in code with additional RaiseErrors when invalid or missing values are returned from XML metadata parsing.

Context - the next PR after this will be based on this upgrade (adds collection, and tests for GRD)
Note - some features required Python 3.8 so 3.7 was dropped and 3.10 was added (consistent with upstream)

Question
Should the version number be bumped, or does that only happen before release? I bumped it to 0.3.1 as it's not the same as 0.3.0.

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.

wildintellect and others added 9 commits November 22, 2022 09:20
Diff against template repo to pull in newer pre-commit style of testing/formatting
Added all the missing type hints, had to refactor some code to return correct types, add create-collection to rtc cli : todo some changes need to be in the Changelog/Readme
@wildintellect wildintellect marked this pull request as ready for review January 14, 2023 00:59
@gadomski gadomski self-requested a review January 17, 2023 17:04
CHANGELOG.md Outdated Show resolved Hide resolved
src/stactools/sentinel1/__init__.py Outdated Show resolved Hide resolved
tests/grd/test_commands.py Outdated Show resolved Hide resolved
wildintellect and others added 3 commits January 17, 2023 16:14
add link to template version

Co-authored-by: Pete Gadomski <[email protected]>
not increment version yet

Co-authored-by: Pete Gadomski <[email protected]>
Remove TODO that is completed.
@gadomski gadomski merged commit e9dc1a1 into stactools-packages:main Jan 18, 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.

2 participants