Skip to content

Commit

Permalink
Add Mypy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
oh2fih committed Jul 30, 2024
1 parent a82d7e0 commit d02effa
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Black (Python)
name: Python Code Quality
on:
push:
pull_request:
Expand All @@ -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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
|:---|:---|:---|
Expand Down

0 comments on commit d02effa

Please sign in to comment.