Skip to content
This repository was archived by the owner on Sep 1, 2025. It is now read-only.

Commit d890b8b

Browse files
committed
feat(build): #1298 use dmypy instead of mypy
- Use dmypy instead of mypy to improve the performance Signed-off-by: Robin Quintero <rohaquinlop301@gmail.com>
1 parent 3aac967 commit d890b8b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/args/lint-python/builder.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ function main {
2020
&& tmpdir="$(mktemp -d)" \
2121
&& copy "${package_path}" "${tmpdir}/${package_name}" \
2222
&& pushd "${tmpdir}" \
23-
&& mypy --config-file "${envSettingsMypy}" "${package_name}" \
23+
&& dmypy start -- --config-file "${envSettingsMypy}" \
24+
&& dmypy check "${package_name}" \
2425
&& python_dirs=() \
2526
&& current_python_dir="" \
2627
&& find . -name '*.py' > tmp \
@@ -34,9 +35,10 @@ function main {
3435
done < tmp \
3536
&& for dir in "${python_dirs[@]}"; do
3637
info Running mypy over: "${package_path}", folder "${dir}" \
37-
&& mypy --config-file "${envSettingsMypy}" "${dir}" \
38+
&& dmypy check "${dir}" \
3839
|| return 1
3940
done \
41+
&& dmypy stop \
4042
&& popd \
4143
&& info Running prospector over: "${package_path}", package "${package_name}" \
4244
&& if ! test -e "${package_path}/__init__.py"; then

0 commit comments

Comments
 (0)