diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 3b1e740..071ebb4 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -13,4 +13,4 @@ on: jobs: call-changelog-check-workflow: - uses: ASFHyP3/actions/.github/workflows/reusable-changelog-check.yml@v0.12.0 + uses: ASFHyP3/actions/.github/workflows/reusable-changelog-check.yml@v0.14.0 diff --git a/.github/workflows/create-jira-issue.yml b/.github/workflows/create-jira-issue.yml index d95ef84..c4e970a 100644 --- a/.github/workflows/create-jira-issue.yml +++ b/.github/workflows/create-jira-issue.yml @@ -6,7 +6,7 @@ on: jobs: call-create-jira-issue-workflow: - uses: ASFHyP3/actions/.github/workflows/reusable-create-jira-issue.yml@v0.12.0 + uses: ASFHyP3/actions/.github/workflows/reusable-create-jira-issue.yml@v0.14.0 secrets: JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} diff --git a/.github/workflows/labeled-pr.yml b/.github/workflows/labeled-pr.yml index f408f3b..c3c050d 100644 --- a/.github/workflows/labeled-pr.yml +++ b/.github/workflows/labeled-pr.yml @@ -12,4 +12,4 @@ on: jobs: call-labeled-pr-check-workflow: - uses: ASFHyP3/actions/.github/workflows/reusable-labeled-pr-check.yml@v0.12.0 + uses: ASFHyP3/actions/.github/workflows/reusable-labeled-pr-check.yml@v0.14.0 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d019023..5c1df0e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,7 +7,7 @@ on: jobs: call-release-workflow: - uses: ASFHyP3/actions/.github/workflows/reusable-release.yml@v0.12.0 + uses: ASFHyP3/actions/.github/workflows/reusable-release.yml@v0.14.0 with: release_prefix: HyP3 Cookiecutter secrets: diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index 17d0d55..85b6274 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -4,4 +4,4 @@ on: push jobs: call-secrets-analysis-workflow: - uses: ASFHyP3/actions/.github/workflows/reusable-secrets-analysis.yml@v0.12.0 + uses: ASFHyP3/actions/.github/workflows/reusable-secrets-analysis.yml@v0.14.0 diff --git a/.github/workflows/tag-version.yml b/.github/workflows/tag-version.yml index 117193b..0f83901 100644 --- a/.github/workflows/tag-version.yml +++ b/.github/workflows/tag-version.yml @@ -7,6 +7,6 @@ on: jobs: call-bump-version-workflow: - uses: ASFHyP3/actions/.github/workflows/reusable-bump-version.yml@v0.12.0 + uses: ASFHyP3/actions/.github/workflows/reusable-bump-version.yml@v0.14.0 secrets: USER_TOKEN: ${{ secrets.TOOLS_BOT_PAK }} diff --git a/CHANGELOG.md b/CHANGELOG.md index e94a6ba..54629aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), 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). +## [0.3.2] +### Changed +- The [`static-analysis`]({{cookiecutter.__project_name}}/.github/workflows/static-analysis.yml) Github Actions workflow now includes `mypy` for type checking. + ## [0.3.1] ### Changed - The [`static-analysis`]({{cookiecutter.__project_name}}/.github/workflows/static-analysis.yml) Github Actions workflow now uses `ruff` rather than `flake8` for linting. diff --git a/{{cookiecutter.__project_name}}/.github/workflows/changelog.yml b/{{cookiecutter.__project_name}}/.github/workflows/changelog.yml index febc8cd..215afb8 100644 --- a/{{cookiecutter.__project_name}}/.github/workflows/changelog.yml +++ b/{{cookiecutter.__project_name}}/.github/workflows/changelog.yml @@ -14,4 +14,4 @@ on: jobs: call-changelog-check-workflow: # Docs: https://github.com/ASFHyP3/actions - uses: ASFHyP3/actions/.github/workflows/reusable-changelog-check.yml@v0.12.0 + uses: ASFHyP3/actions/.github/workflows/reusable-changelog-check.yml@v0.14.0 diff --git a/{{cookiecutter.__project_name}}/.github/workflows/labeled-pr.yml b/{{cookiecutter.__project_name}}/.github/workflows/labeled-pr.yml index dde2ec5..c536d3b 100644 --- a/{{cookiecutter.__project_name}}/.github/workflows/labeled-pr.yml +++ b/{{cookiecutter.__project_name}}/.github/workflows/labeled-pr.yml @@ -13,4 +13,4 @@ on: jobs: call-labeled-pr-check-workflow: # Docs: https://github.com/ASFHyP3/actions - uses: ASFHyP3/actions/.github/workflows/reusable-labeled-pr-check.yml@v0.12.0 + uses: ASFHyP3/actions/.github/workflows/reusable-labeled-pr-check.yml@v0.14.0 diff --git a/{{cookiecutter.__project_name}}/.github/workflows/release-checklist-comment.yml b/{{cookiecutter.__project_name}}/.github/workflows/release-checklist-comment.yml index b05ddb4..566c803 100644 --- a/{{cookiecutter.__project_name}}/.github/workflows/release-checklist-comment.yml +++ b/{{cookiecutter.__project_name}}/.github/workflows/release-checklist-comment.yml @@ -10,7 +10,7 @@ on: jobs: call-release-workflow: # Docs: https://github.com/ASFHyP3/actions - uses: ASFHyP3/actions/.github/workflows/reusable-release-checklist-comment.yml@v0.12.0 + uses: ASFHyP3/actions/.github/workflows/reusable-release-checklist-comment.yml@v0.14.0 permissions: pull-requests: write secrets: diff --git a/{{cookiecutter.__project_name}}/.github/workflows/release.yml b/{{cookiecutter.__project_name}}/.github/workflows/release.yml index ef2afe3..7cc4006 100644 --- a/{{cookiecutter.__project_name}}/.github/workflows/release.yml +++ b/{{cookiecutter.__project_name}}/.github/workflows/release.yml @@ -8,7 +8,7 @@ on: jobs: call-release-workflow: # Docs: https://github.com/ASFHyP3/actions - uses: ASFHyP3/actions/.github/workflows/reusable-release.yml@v0.12.0 + uses: ASFHyP3/actions/.github/workflows/reusable-release.yml@v0.14.0 with: release_prefix: {{ cookiecutter.__project_title }} release_branch: main diff --git a/{{cookiecutter.__project_name}}/.github/workflows/static-analysis.yml b/{{cookiecutter.__project_name}}/.github/workflows/static-analysis.yml index 1d08910..88f867b 100644 --- a/{{cookiecutter.__project_name}}/.github/workflows/static-analysis.yml +++ b/{{cookiecutter.__project_name}}/.github/workflows/static-analysis.yml @@ -5,8 +5,12 @@ on: push jobs: call-secrets-analysis-workflow: # Docs: https://github.com/ASFHyP3/actions - uses: ASFHyP3/actions/.github/workflows/reusable-secrets-analysis.yml@v0.12.0 + uses: ASFHyP3/actions/.github/workflows/reusable-secrets-analysis.yml@v0.14.0 call-ruff-workflow: # Docs: https://github.com/ASFHyP3/actions - uses: ASFHyP3/actions/.github/workflows/reusable-ruff.yml@v0.12.0 + uses: ASFHyP3/actions/.github/workflows/reusable-ruff.yml@v0.14.0 + + call-mypy-workflow: + # Docs: https://github.com/ASFHyP3/actions + uses: ASFHyP3/actions/.github/workflows/reusable-mypy.yml@v0.14.0 diff --git a/{{cookiecutter.__project_name}}/.github/workflows/tag-version.yml b/{{cookiecutter.__project_name}}/.github/workflows/tag-version.yml index 21c2290..17b3733 100644 --- a/{{cookiecutter.__project_name}}/.github/workflows/tag-version.yml +++ b/{{cookiecutter.__project_name}}/.github/workflows/tag-version.yml @@ -8,7 +8,7 @@ on: jobs: call-bump-version-workflow: # Docs: https://github.com/ASFHyP3/actions - uses: ASFHyP3/actions/.github/workflows/reusable-bump-version.yml@v0.12.0 + uses: ASFHyP3/actions/.github/workflows/reusable-bump-version.yml@v0.14.0 with: user: {{ cookiecutter.github_username }} email: {{ cookiecutter.github_email }} diff --git a/{{cookiecutter.__project_name}}/.github/workflows/test-and-build.yml b/{{cookiecutter.__project_name}}/.github/workflows/test-and-build.yml index 761d1e9..e778b39 100644 --- a/{{cookiecutter.__project_name}}/.github/workflows/test-and-build.yml +++ b/{{cookiecutter.__project_name}}/.github/workflows/test-and-build.yml @@ -13,7 +13,7 @@ on: jobs: call-pytest-workflow: # Docs: https://github.com/ASFHyP3/actions - uses: ASFHyP3/actions/.github/workflows/reusable-pytest.yml@v0.12.0 + uses: ASFHyP3/actions/.github/workflows/reusable-pytest.yml@v0.14.0 with: local_package_name: {{ cookiecutter.__package_name }} python_versions: >- @@ -21,12 +21,12 @@ jobs: call-version-info-workflow: # Docs: https://github.com/ASFHyP3/actions - uses: ASFHyP3/actions/.github/workflows/reusable-version-info.yml@v0.12.0 + uses: ASFHyP3/actions/.github/workflows/reusable-version-info.yml@v0.14.0 call-docker-ghcr-workflow: needs: call-version-info-workflow # Docs: https://github.com/ASFHyP3/actions - uses: ASFHyP3/actions/.github/workflows/reusable-docker-ghcr.yml@v0.12.0 + uses: ASFHyP3/actions/.github/workflows/reusable-docker-ghcr.yml@v0.14.0 with: version_tag: {{'${{ needs.call-version-info-workflow.outputs.version_tag }}'}} release_branch: main diff --git a/{{cookiecutter.__project_name}}/environment.yml b/{{cookiecutter.__project_name}}/environment.yml index fe77dcf..9c95941 100644 --- a/{{cookiecutter.__project_name}}/environment.yml +++ b/{{cookiecutter.__project_name}}/environment.yml @@ -7,6 +7,7 @@ dependencies: - pip # For packaging, and testing - ruff + - mypy - setuptools_scm - pytest - pytest-console-scripts diff --git a/{{cookiecutter.__project_name}}/pyproject.toml b/{{cookiecutter.__project_name}}/pyproject.toml index c755a3f..50583df 100644 --- a/{{cookiecutter.__project_name}}/pyproject.toml +++ b/{{cookiecutter.__project_name}}/pyproject.toml @@ -79,3 +79,11 @@ lines-after-imports = 2 [tool.ruff.lint.extend-per-file-ignores] "tests/*" = ["D100", "D103", "ANN"] + +[tool.mypy] +python_version = "3.10" +warn_redundant_casts = true +warn_unused_ignores = true +warn_unreachable = true +strict_equality = true +check_untyped_defs = true