Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "Patch typing coverage"
on: [push, pull_request]

jobs:
static-type-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v3
with:
python-version: '3.10'
- run: pip install mypy==1.10.0
- name: Get Python changed files
id: changed-py-files
uses: tj-actions/changed-files@v44.3.0
with:
files: |
*.py
**/*.py
- name: Run if any of the listed files above is changed
if: steps.changed-py-files.outputs.any_changed == 'true'
run: mypy ${{ steps.changed-py-files.outputs.all_changed_files }} --ignore-missing-imports
5 changes: 4 additions & 1 deletion app/splitter/split.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ def split_one(a, b):
return f"{a} + {b}"

def split_two(a, b):
return f"{a} - {b}"
return f"{a} - {b}"

def split_three(a, b):
return f"{a} x {b}"