Skip to content

Commit 4064df3

Browse files
committed
Add mypy --install-types to GH Actions pipeline
1 parent 16396ba commit 4064df3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/django.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ jobs:
1010
- name: Run ruff
1111
run: docker compose run django ruff check styleguide_example/
1212
- name: Run mypy
13-
run: docker compose run django mypy --config mypy.ini styleguide_example/
13+
run: |
14+
docker compose run django mypy --config mypy.ini --install-types
15+
docker compose run django mypy --config mypy.ini styleguide_example/
1416
- name: Run tests
1517
run: docker compose run django py.test
1618

@@ -49,7 +51,9 @@ jobs:
4951
- name: Run ruff
5052
run: ruff check .
5153
- name: Type check
52-
run: mypy --config mypy.ini styleguide_example/
54+
run: |
55+
mypy --config mypy.ini --install-types
56+
mypy --config mypy.ini styleguide_example/
5357
- name: Run tests
5458
run: pytest
5559

0 commit comments

Comments
 (0)