Skip to content

Commit 616de6d

Browse files
committed
Add mypy for type checking
1 parent e714b1a commit 616de6d

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,12 @@ gh_api.sqlite
101101
MANIFEST
102102
README
103103
.pytest_cache
104-
105104
venv/
106-
107105
gradebook.db
108106
.buildconfig
109107
*~
110108
.vscode/
111109
package-lock.json
112110
.goutputstream*
113111
.idea
114-
112+
.mypy_cache

dev-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ pytest>=4.5
22
pytest-cov
33
pytest-rerunfailures
44
pytest-xdist
5+
pytest-mypy
56
coverage
67
selenium
78
sphinx

mypy.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[mypy]
2+
ignore_missing_imports = True

tasks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def _run_tests(mark, skip, junitxml, paralell=False):
6060
if paralell:
6161
cmd.extend(['--numprocesses', 'auto'])
6262
cmd.extend(['--reruns', '4'])
63+
cmd.extend(['--mypy'])
6364

6465
marks = []
6566
if mark is not None:

0 commit comments

Comments
 (0)