Skip to content

Commit

Permalink
add mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
jtherrmann committed Jan 11, 2025
1 parent 2df960f commit 454b949
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ jobs:
# Docs: https://github.com/ASFHyP3/actions
uses: ASFHyP3/actions/.github/workflows/[email protected]

call-mypy-workflow:
uses: ASFHyP3/actions/.github/workflows/[email protected]

cfn-lint:
runs-on: ubuntu-latest
steps:
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.3.8]
### Added
- Add `mypy` to [`static-analysis`](.github/workflows/static-analysis.yml)

## [0.3.7]
### Fixed
- Remove the [Context extension](https://github.com/stac-api-extensions/context), which is no longer supported as of [stac-fastapi v3.0.0](https://github.com/stac-utils/stac-fastapi/blob/main/CHANGES.md#300---2024-07-29). Our previous release (v0.3.6) upgraded the `stac-fastapi.pgstac` dependency from `2.5.0` to `3.0.1` without removing the Context extension, which caused https://stac.asf.alaska.edu to return `Internal Server Error`.
Expand Down
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,11 @@ convention = "google"
[tool.ruff.lint.isort]
case-sensitive = true
lines-after-imports = 2

[tool.mypy]
python_version = "3.9"
warn_redundant_casts = true
warn_unused_ignores = true
warn_unreachable = true
strict_equality = true
check_untyped_defs = true
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
boto3==1.35.82
cfn-lint==1.22.2
ruff
mypy
pypgstac[psycopg]==0.8.6
pystac==1.10.1
pytest==8.3.4
Expand Down

0 comments on commit 454b949

Please sign in to comment.