-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(mypy): add mypy check and adjust code for types (#439)
* ci(mypy): add mypy check and adjust code for types * remove redefinitions config * update stubs and ignores * update output for compression typing * update expanduser types for cell_locations * add ignore for change in types * adjust for typing * update celllocations typing * remove ignores * add missing library ignore settings; fix aggregate * add test condition for aggregate
- Loading branch information
Showing
11 changed files
with
257 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,6 +56,28 @@ jobs: | |
uses: pre-commit/[email protected] | ||
with: | ||
extra_args: --all-files | ||
python-type-checks: | ||
# This job is used to check Python types | ||
name: Python type checks | ||
# Avoid fail-fast to retain output | ||
strategy: | ||
fail-fast: false | ||
runs-on: ubuntu-22.04 | ||
if: github.event_name != 'schedule' | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
- name: Setup python, and check pre-commit cache | ||
uses: ./.github/actions/setup-env | ||
with: | ||
python-version: ${{ env.TARGET_PYTHON_VERSION }} | ||
cache-pre-commit: false | ||
cache-venv: true | ||
setup-poetry: true | ||
install-deps: true | ||
- name: Run mypy | ||
run: | | ||
poetry run mypy . | ||
integration-test: | ||
name: Pytest (Python ${{ matrix.python-version }} on ${{ matrix.os }}) | ||
# Runs pytest on all tested versions of python and OSes | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.