diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 263d346..8e9e1cf 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -1,4 +1,4 @@ -name: Black (Python) +name: Python Code Quality on: push: pull_request: @@ -16,3 +16,15 @@ jobs: with: options: --check --verbose src: . + mypy: + name: Mypy + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Strict static type checking for Python scripts + uses: actions/setup-python@v5 + with: + python-version: "3.11" + cache: pip + - run: pip install mypy + - run: mypy --strict */*.py diff --git a/README.md b/README.md index 2fe76ef..fc78840 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Miscellaneous scripts for different purposes. Mostly unrelated to each other. ![ShellCheck](https://github.com/oh2fih/Misc-Scripts/workflows/ShellCheck/badge.svg) -![Black (Python)](https://github.com/oh2fih/Misc-Scripts/workflows/Black%20(Python)/badge.svg) +![Python Code Quality)](https://github.com/oh2fih/Misc-Scripts/workflows/Python%20Code%20Quality/badge.svg) | Category | Script & Language | Purpose & Usage | |:---|:---|:---|