Skip to content

Commit 097ff58

Browse files
committed
build: add mypy as requirement and run it in ci
1 parent feff3b9 commit 097ff58

3 files changed

Lines changed: 20 additions & 0 deletions

File tree

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ help: ## display this help message
2121

2222
quality: ## check coding style with pycodestyle and pylint
2323
pycodestyle
24+
mypy
2425
pylint xblock
2526

2627
validate: test

mypy.ini

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[mypy]
2+
follow_imports = normal
3+
ignore_missing_imports = False
4+
allow_untyped_globals = False
5+
files =
6+
xblock
7+
8+
# Ignore web_fragments typing until it has hints.
9+
[mypy-web_fragments.*]
10+
ignore_missing_imports = True

requirements/test.in

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,22 @@ astroid
88
coverage
99
ddt
1010
diff-cover >= 0.2.1
11+
django-stubs
1112
edx_lint
1213
hypothesis
14+
lxml-stubs
1315
mock
16+
mypy
1417
path
1518
pycodestyle
1619
pylint
1720
pytest
1821
pytest-cov
1922
pytest-django
2023
tox
24+
types-python-dateutil
25+
types-pytz
26+
types-PyYAML
27+
types-setuptools
28+
types-simplejson
29+
types-WebOb

0 commit comments

Comments
 (0)