Skip to content

Commit

Permalink
Merge pull request #457 from asfadmin/mypy
Browse files Browse the repository at this point in the history
add mypy
  • Loading branch information
jtherrmann authored Jan 13, 2025
2 parents 326d88c + 0872d26 commit 590198c
Show file tree
Hide file tree
Showing 5 changed files with 26 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:
call-ruff-workflow:
uses: ASFHyP3/actions/.github/workflows/reusable-ruff.yml@v0.13.2

call-mypy-workflow:
uses: ASFHyP3/actions/.github/workflows/reusable-mypy.yml@v0.14.0

cfn-lint:
runs-on: ubuntu-latest

Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [PEP 440](https://www.python.org/dev/peps/pep-0440/)
and uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.0.3]
### Added
- Added `mypy` to static analysis workflow.
### Changed
- Replaced `flake8` with `ruff`.

Expand Down
9 changes: 9 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: grfn-distribution
channels:
- conda-forge
- nodefaults
dependencies:
- python=3.12
- pip
- pip:
- -r requirements-all.txt
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,11 @@ convention = "google"
[tool.ruff.lint.isort]
case-sensitive = true
lines-after-imports = 2

[tool.mypy]
python_version = "3.12"
warn_redundant_casts = true
warn_unused_ignores = true
warn_unreachable = true
strict_equality = true
check_untyped_defs = true
4 changes: 4 additions & 0 deletions requirements-all.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-r requirements-door.txt
-r requirements-door-binary.txt
ruff
mypy

0 comments on commit 590198c

Please sign in to comment.