-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix typing errors and set up
mypy
workflow action (#176)
* Address mypy errors * Change action name * Add mypy github action * Fix typing errors * Correct job name * Fix typing error * Fix merge error * Address test failure * Fix typing errors * Fix typing errors and clean up itstat default mechanism * Fix a bug and some typing errors * Exclude modules with dynamically generated functions * Make docstring phrasing imperative * Suppress typing errors * Fix typing error and clean up * Fix typing errors * Fix or suppress typing errors * Typo fix * Revert erroneous attempt to resolve typing error * Typing annotation fix and suppress some spurious typing errors * Address typing error and rephrase error messages * Fix some typing errors * Supress some typing errors * Address typing error * Fix typing errors and docstring style issues * Address test failure * Suppress/address some typing errors * Fix merge error * Fix merge error * Improve code style * Resolve mypy errors * Resolve mypy errors * Resolve mypy errors * Modify mypy configuration in workflow * Trivial edit * Bug fix * Consistency improvement * Address CodeFactor complex function * Fix type error * Switch back to ignore, can't solve this problem without code bloat * Fixed extra 's' in `LinearOperator`s string. * Trivial edit * Use type guard rather than type ignore * Fix EllipsisType import * Minor edits for docs style Co-authored-by: Michael-T-McCann <[email protected]> Co-authored-by: Fernando Davis <[email protected]>
- Loading branch information
1 parent
4381be5
commit 157f2ba
Showing
29 changed files
with
272 additions
and
196 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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Install and run mypy | ||
|
||
name: mypy | ||
|
||
# Controls when the workflow will run | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the main branch | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
mypy: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
- name: Install Python 3 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.8 | ||
- name: Install dependencies | ||
run: | | ||
pip install mypy | ||
- name: Run mypy | ||
run: | | ||
mypy --follow-imports=skip --ignore-missing-imports --exclude "(numpy|test)" scico/ |
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
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.