Skip to content

Commit

Permalink
build: add mypy as requirement and run it in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
kdmccormick committed Jun 14, 2024
1 parent 9e21fd3 commit 5e32fbb
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ help: ## display this help message

quality: ## check coding style with pycodestyle and pylint
pycodestyle
mypy
pylint xblock

validate: test
Expand Down
10 changes: 10 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[mypy]
follow_imports = normal
ignore_missing_imports = False
allow_untyped_globals = False
files =
xblock

# Ignore web_fragments typing until it has hints.
[mypy-web_fragments.*]
ignore_missing_imports = True
9 changes: 9 additions & 0 deletions requirements/test.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,22 @@ astroid
coverage
ddt
diff-cover >= 0.2.1
django-stubs
edx_lint
hypothesis
lxml-stubs
mock
mypy
path
pycodestyle
pylint
pytest
pytest-cov
pytest-django
tox
types-python-dateutil
types-pytz
types-PyYAML
types-setuptools
types-simplejson
types-WebOb

0 comments on commit 5e32fbb

Please sign in to comment.