lint-python.sh 419 Bytes
Newer Older
1
2
#!/bin/sh

3
4
echo "running ruff"
ruff check \
5
6
    --config=./python-package/pyproject.toml \
    . \
7
|| exit -1
8
echo "done running ruff"
9
10
11
12

echo "running isort"
isort \
    --check-only \
13
14
    --settings-path=./python-package/pyproject.toml \
    . \
15
16
17
18
19
|| exit -1
echo "done running isort"

echo "running mypy"
mypy \
20
21
    --config-file=./python-package/pyproject.toml \
    ./python-package \
22
23
|| true
echo "done running mypy"