Skip to content

Commit

Permalink
Add mypy for static type checks
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman committed Mar 27, 2024
1 parent 557fcc1 commit 15c1a31
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ help:
@echo " doc build the documentation"
@echo " format run ruff to automatically format the code"
@echo " check run ruff to check code style and quality"
@echo " typecheck run mypy for static type check"
@echo " clean clean up build and generated files"
@echo " dist-clean clean up egg-info files"
@echo ""
Expand All @@ -28,6 +29,9 @@ check:
ruff check .
ruff format --check .

typecheck:
mypy HinetPy

clean:
find . -name "*.pyc" -exec rm -v {} \;
find . -name "*.mo" -exec rm -v {} \;
Expand Down
3 changes: 3 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ ruff
sphinx
sphinx-intl
sphinx_rtd_theme
# Dev dependencies for static type checks
mypy
types-requests

0 comments on commit 15c1a31

Please sign in to comment.