Skip to content

Commit 5b27b23

Browse files
authored
[Tests] Enable mypy (#300)
The CI now runs mypy on the tests folder to detect typing errors.
1 parent 2bdf719 commit 5b27b23

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/pyaleph-ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ jobs:
5353
- name: Check types
5454
run: |
5555
mypy src/
56+
- name: Check types in tests
57+
run: |
58+
mypy tests/
5659
- name: Run unit tests
5760
run: |
5861
pytest -v .

mypy.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ python_version = 3.8
55

66
mypy_path = src
77

8+
exclude = conftest.py
9+
810

911
show_column_numbers = True
1012

0 commit comments

Comments
 (0)