fix: run pre-commit checks instead of flake8 and isort

Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>
This commit is contained in:
Leonidas Spyropoulos 2022-09-05 17:08:55 +01:00
parent 6435c2b1f1
commit 310c469ba8
No known key found for this signature in database
GPG key ID: 59E43E106B247368
2 changed files with 3 additions and 4 deletions

View file

@ -18,6 +18,6 @@ pacman -Syu --noconfirm --noprogressbar \
php php-fpm memcached php-memcached python-pip pyalpm \ php php-fpm memcached php-memcached python-pip pyalpm \
python-srcinfo curl libeatmydata cronie python-poetry \ python-srcinfo curl libeatmydata cronie python-poetry \
python-poetry-core step-cli step-ca asciidoc \ python-poetry-core step-cli step-ca asciidoc \
python-virtualenv python-virtualenv python-pre-commit
exec "$@" exec "$@"

View file

@ -21,8 +21,7 @@ rm -f /data/.coverage
cp -v .coverage /data/.coverage cp -v .coverage /data/.coverage
chmod 666 /data/.coverage chmod 666 /data/.coverage
# Run flake8 and isort checks. # Run pre-commit checks
for dir in aurweb test migrations; do for dir in aurweb test migrations; do
flake8 --count $dir pre-commit run -a
isort --check-only $dir
done done