Skip to content

Commit b5df3d8

Browse files
committed
chore: add mypy
1 parent c585630 commit b5df3d8

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

check_python_file.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ do
1616
if ! poetry run flake8 "${cur_file}" --count --max-line-length=88 --show-source --ignore=E203; then
1717
exit_code=1
1818
fi
19+
20+
printf "Checking with mypy:\n"
21+
if ! poetry run mypy "${cur_file}"; then
22+
exit_code=1
23+
fi
1924
done
2025

2126
if [[ ${exit_code} -eq 0 ]] ; then

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "string-to-code"
3-
version = "0.2.0"
3+
version = "0.2.1"
44
description = "Generates a piece of messy code in a given language displaying a given string "
55
authors = ["piotr.idzik <[email protected]>"]
66
readme = "./string_to_code/README.md"
@@ -22,6 +22,7 @@ pylint = ">=2.0"
2222
flake8 = ">=5.0"
2323
coverage = ">=6.0"
2424
black = ">=21.0"
25+
mypy = ">=1.4"
2526

2627
[build-system]
2728
requires = ["poetry-core"]

0 commit comments

Comments
 (0)