Skip to content

Commit 4134e6f

Browse files
committed
[lint] run mypy on each CI run
1 parent 0b282c9 commit 4134e6f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/tests.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ jobs:
1212
with:
1313
python-version: 3.7
1414
- name: Install packages
15-
run: pip install black flake8 isort mypy
15+
run: pip install black flake8 isort mypy types-certifi types-cryptography types-pyopenssl
1616
- name: Run linters
1717
run: |
1818
flake8 examples src tests
1919
isort --check-only --diff examples src tests
2020
black --check --diff examples src tests
21+
mypy src tests
2122
2223
test:
2324
runs-on: ${{ matrix.os }}

tests/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def generate_ed448_certificate(common_name, alternative_names=[]):
7373
)
7474

7575

76-
def load(name):
76+
def load(name: str) -> bytes:
7777
path = os.path.join(os.path.dirname(__file__), name)
7878
with open(path, "rb") as fp:
7979
return fp.read()

0 commit comments

Comments
 (0)