1
0
mirror of synced 2025-12-25 02:09:19 -05:00

Ingore unit tests in mypy check (#28359)

* ingore unit tests in mypy check

* Update airbyte-cdk/python/bin/run-mypy-on-modified-files.sh

Co-authored-by: Alexandre Girard <alexandre@airbyte.io>

* ignore list instead of allow list

---------

Co-authored-by: Alexandre Girard <alexandre@airbyte.io>
This commit is contained in:
Joe Reuter
2023-07-19 10:41:34 +02:00
committed by GitHub
parent e10f768b50
commit db16853fd8

View File

@@ -1,2 +1,3 @@
set -e
git diff --name-only --relative --diff-filter=d remotes/origin/master -- . | grep -E '\.py$' | xargs .venv/bin/python -m mypy --config-file mypy.ini --install-types --non-interactive
# TODO change this to include unit_tests as well once it's in a good state
git diff --name-only --relative --diff-filter=d remotes/origin/master -- . ':(exclude)unit_tests' | grep -E '\.py$' | xargs .venv/bin/python -m mypy --config-file mypy.ini --install-types --non-interactive