lint-python.sh 383 Bytes
Newer Older
1
2
3
#!/bin/bash

set -e -E -u -o pipefail
4

5
6
7
8
9
# this can be re-enabled when this is fixed:
# https://github.com/tox-dev/filelock/issues/337
# echo "running pre-commit checks"
# pre-commit run --all-files || exit 1
# echo "done running pre-commit checks"
10
11
12

echo "running mypy"
mypy \
13
14
    --config-file=./python-package/pyproject.toml \
    ./python-package \
15
16
|| true
echo "done running mypy"