-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from OpenMOSS/dev
Comply with Strict Mypy Typing
- Loading branch information
Showing
19 changed files
with
200 additions
and
546 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,52 @@ | ||
name: Checks | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
paths: | ||
- "**" # Include all files by default | ||
- "!.devcontainer/**" | ||
- "!.vscode/**" | ||
- "!.git*" | ||
- "!*.md" | ||
- "!.github/**" | ||
- ".github/workflows/checks.yml" # Still include current workflow | ||
pull_request: | ||
branches: | ||
- main | ||
- dev | ||
paths: | ||
- "**" | ||
- "!.devcontainer/**" | ||
- "!.vscode/**" | ||
- "!.git*" | ||
- "!*.md" | ||
- "!.github/**" | ||
- ".github/workflows/checks.yml" | ||
# Allow this workflow to be called from other workflows | ||
workflow_call: | ||
inputs: | ||
# Requires at least one input to be valid, but in practice we don't need any | ||
dummy: | ||
type: string | ||
required: false | ||
|
||
permissions: | ||
actions: write | ||
contents: write | ||
|
||
jobs: | ||
code-checks: | ||
name: Code Checks | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup PDM | ||
uses: pdm-project/setup-pdm@v4 | ||
# You are now able to use PDM in your workflow | ||
- name: Install dependencies | ||
run: pdm install | ||
- name: Type check | ||
run: pdm run mypy . |
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
Oops, something went wrong.