Skip to content

Commit 6e31788

Browse files
committed
build(deps): Add mypy
1 parent 614ba0f commit 6e31788

File tree

4 files changed

+56
-2
lines changed

4 files changed

+56
-2
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ target/
6565
# 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
@@ -48,5 +48,11 @@ flake8:
4848
watch_flake8:
4949
if command -v entr > /dev/null; then ${PY_FILES} | entr -c $(MAKE) flake8; else $(MAKE) flake8 entr_warn; fi
5050

51+
mypy:
52+
poetry run mypy `${PY_FILES}`
53+
54+
watch_mypy:
55+
if command -v entr > /dev/null; then ${PY_FILES} | entr -c $(MAKE) mypy; else $(MAKE) mypy entr_warn; fi
56+
5157
format_markdown:
5258
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
@@ -75,6 +75,7 @@ isort = "*"
7575

7676
### Lint ###
7777
flake8 = "*"
78+
mypy = "*"
7879

7980
[tool.poetry.extras]
8081
docs = [
@@ -93,7 +94,7 @@ docs = [
9394
test = ["pytest", "pytest-rerunfailures", "pytest-mock", "pytest-watcher"]
9495
coverage = ["codecov", "coverage", "pytest-cov"]
9596
format = ["black", "isort"]
96-
lint = ["flake8"]
97+
lint = ["flake8", "mypy"]
9798

9899
[build-system]
99100
requires = ["poetry_core>=1.0.0", "setuptools>50"]

0 commit comments

Comments
 (0)