diff --git a/.gitignore b/.gitignore index da74434ba..0739a43b8 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ node_modules # Avoid local python development *__pycache__ *.pytest_cache +*__mypycache__ env/ Pipfile Pipfile.lock diff --git a/.hooks/pre-push b/.hooks/pre-push index 1746632ee..ada2e80b2 100755 --- a/.hooks/pre-push +++ b/.hooks/pre-push @@ -95,7 +95,7 @@ echo "Running pylint.." pipenv run pylint $python_files echo "Running mypy.." -git ls-files '*setup.py' | parallel 'pipenv run mypy $(dirname {}) --cache-dir $(dirname {})' +git ls-files '*setup.py' | parallel 'pipenv run mypy $(dirname {}) --cache-dir "$(dirname {})/__mypycache__"' echo "Running pytest.." pipenv run pytest -n 10 --cov="$repository_path" --cov-report html