Skip to content

Commit 451b7ec

Browse files
committed
Show mypy problems on PRs
1 parent 9854bb2 commit 451b7ec

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/dist.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,7 @@ jobs:
3030
pip --disable-pip-version-check install mypy setuptools wheel setuptools_scm
3131
pip --disable-pip-version-check install --no-build-isolation -e .
3232
- name: Run mypy
33-
run: |
34-
mypy commands2
33+
uses: liskin/gh-problem-matcher-wrap@v2
34+
with:
35+
linters: mypy
36+
run: mypy --show-column-numbers commands2

commands2/command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class Command(Sendable):
5858
InterruptionBehavior # type alias for 2023 location
5959
)
6060

61-
requirements: Set[Subsystem]
61+
requirements: Set[Command]
6262

6363
def __new__(cls, *args, **kwargs) -> Self:
6464
instance = super().__new__(

0 commit comments

Comments
 (0)