Skip to content

Commit f55d552

Browse files
committed
build(deps): Add mypy
1 parent c4e4d8f commit f55d552

File tree

4 files changed

+57
-3
lines changed

4 files changed

+57
-3
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,12 @@ docs/_build/
6262
# PyBuilder
6363
target/
6464

65-
#Ipython Notebook
65+
# Ipython Notebook
6666
.ipynb_checkpoints
6767

68+
# mypy
69+
.mypy_cache/
70+
6871
# editors
6972
.idea
7073
.ropeproject

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,11 @@ flake8:
5050
watch_flake8:
5151
if command -v entr > /dev/null; then ${PY_FILES} | entr -c $(MAKE) flake8; else $(MAKE) flake8 entr_warn; fi
5252

53+
mypy:
54+
poetry run mypy `${PY_FILES}`
55+
56+
watch_mypy:
57+
if command -v entr > /dev/null; then ${PY_FILES} | entr -c $(MAKE) mypy; else $(MAKE) mypy entr_warn; fi
58+
5359
format_markdown:
5460
npx prettier --parser=markdown -w *.md docs/*.md docs/**/*.md CHANGES

poetry.lock

Lines changed: 45 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ isort = "*"
8484

8585
### Lint ###
8686
flake8 = "*"
87+
mypy = "*"
8788

8889
[tool.poetry.extras]
8990
docs = [
@@ -104,7 +105,7 @@ docs = [
104105
test = ["pytest", "pytest-rerunfailures", "pytest-mock", "pytest-watcher"]
105106
coverage = ["codecov", "coverage", "pytest-cov"]
106107
format = ["black", "isort"]
107-
lint = ["flake8"]
108+
lint = ["flake8", "mypy"]
108109

109110
[build-system]
110111
requires = ["poetry_core>=1.0.0"]

0 commit comments

Comments
 (0)